diff --git a/app/bot.php b/app/bot.php index 19e97cb..f15f65c 100644 --- a/app/bot.php +++ b/app/bot.php @@ -1356,7 +1356,7 @@ class Bot $out[] = 'update xray'; $this->update($this->input['chat'], $this->input['message_id'], implode("\n", $out)); $this->restartXray($json['xray']); - $this->setUpstreamDomain($json['xray']['inbounds'][0]['streamSettings']['realitySettings']['serverNames'][0]); + $this->setUpstreamDomain($json['pac']['transport'] == 'Websocket' ? 't' : ($json['pac']['reality']['domain'] ?: $json['xray']['inbounds'][0]['streamSettings']['realitySettings']['serverNames'][0])); } // ocserv if (!empty($json['oc'])) { diff --git a/version b/version index 64188f7..3e5ac06 100644 --- a/version +++ b/version @@ -1,3 +1,5 @@ +08.09.2024 v1.50 +- fix import with transport 08.09.2024 v1.49 - fix add user xray with transport 08.09.2024 v1.48