From 29e7be6cd883ffbd2621724cef4f26794ac10a37 Mon Sep 17 00:00:00 2001 From: mercury Date: Thu, 11 Apr 2024 17:06:21 +0400 Subject: [PATCH] improve xray config --- app/bot.php | 1 + version | 2 ++ 2 files changed, 3 insertions(+) diff --git a/app/bot.php b/app/bot.php index 7c3b045..922709d 100644 --- a/app/bot.php +++ b/app/bot.php @@ -481,6 +481,7 @@ class Bot public function restartXray($c) { + $c['inbounds'][0]['settings']['clients'] = array_values($c['inbounds'][0]['settings']['clients']); $this->ssh('pkill xray', 'xr'); file_put_contents('/config/xray.json', json_encode($c, JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES)); $this->ssh('xray run -config /xray.json > /dev/null 2>&1 &', 'xr'); diff --git a/version b/version index 30eacbc..fec38a5 100644 --- a/version +++ b/version @@ -1,3 +1,5 @@ +11.04.2024 v1.23 +- фикс совместимости старого конфига xray из бэкапа 11.04.2024 v1.22 - улучшение гибкости выбора шаблона sing-box 11.04.2024 v1.21