From 28e66d46fd28050742db1b7f86f407c434364ca4 Mon Sep 17 00:00:00 2001 From: mercury Date: Sun, 8 Sep 2024 16:22:17 +0400 Subject: [PATCH] fix import with transport --- app/bot.php | 2 +- version | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) 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