fix start singbox

This commit is contained in:
mercury
2024-05-04 12:09:52 +04:00
parent 95c9d40b00
commit a1ac552c3e
+2 -3
View File
@@ -3872,11 +3872,10 @@ DNS-over-HTTPS with IP:
public function xray($page = 0)
{
if (!$this->ssh('pgrep sing-box', 'si')) {
$pac = $this->getPacConf();
if (!$this->ssh('pgrep sing-box', 'si') || empty($pac['xray']['private'])) {
$this->generateSecretXray();
}
$c = $this->getXray();
$pac = $this->getPacConf();
$text[] = "Menu -> " . $this->i18n('xray');
$text[] = "\nfake domain: <code>{$pac['xray']['domain']}</code>";
$text[] = "public: <code>{$pac['xray']['public']}</code>";