diff --git a/app/bot.php b/app/bot.php index 00251f2..19e97cb 100644 --- a/app/bot.php +++ b/app/bot.php @@ -4027,11 +4027,15 @@ DNS-over-HTTPS with IP: public function addxrus($user) { $c = $this->getXray(); + $p = $this->getPacConf(); $uuid = trim($this->ssh('xray uuid', 'xr')); - $c['inbounds'][0]['settings']['clients'][] = [ - 'id' => $uuid, - 'flow' => 'xtls-rprx-vision', - 'email' => $user, + $c['inbounds'][0]['settings']['clients'][] = $p['transport'] == 'Websocket' ? [ + 'id' => $uuid, + 'email' => $user, + ] : [ + 'id' => $uuid, + 'flow' => 'xtls-rprx-vision', + 'email' => $user, ]; $this->restartXray($c); $this->userXr(count($c['inbounds'][0]['settings']['clients']) - 1); diff --git a/version b/version index c5ebe8e..64188f7 100644 --- a/version +++ b/version @@ -1,3 +1,5 @@ +08.09.2024 v1.49 +- fix add user xray with transport 08.09.2024 v1.48 - fix change xray transport, save private key xray 08.09.2024 v1.47