From 792b4d2d757cbb47dfbbec102420842e5c40ecdd Mon Sep 17 00:00:00 2001 From: mercury Date: Wed, 7 Jun 2023 18:14:39 +0400 Subject: [PATCH] fix ss-client password --- app/bot.php | 6 +++++- version | 2 ++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/app/bot.php b/app/bot.php index 8d1ab86..b8f555b 100644 --- a/app/bot.php +++ b/app/bot.php @@ -439,11 +439,15 @@ class Bot public function sspwdch($pass) { + $this->ssh('pkill sslocal', 'proxy'); $this->ssh('pkill ssserver', 'ss'); $c = $this->getSSConfig(); - $c['password'] = $pass; + $l = $this->getSSLocalConfig(); + $c['password'] = $l['password'] = $pass; file_put_contents('/config/ssserver.json', json_encode($c, JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES)); + file_put_contents('/config/sslocal.json', json_encode($l, JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES)); $this->ssh('/ssserver -v -d -c /config.json', 'ss'); + $this->ssh('/sslocal -v -d -c /config.json', 'proxy'); $this->menu('ss'); } diff --git a/version b/version index 3b496b6..f6163e7 100644 --- a/version +++ b/version @@ -1,3 +1,5 @@ +07.06.2023 фикс рассинхрона пароля в ss +git pull 07.06.2023 установка таймера включает пир, если он был выключен git pull 07.06.2023 адаптация конфига wg под текущий домен/айпи/порт