fix ss-client password

This commit is contained in:
mercury
2023-06-07 18:14:39 +04:00
parent e8be47a1e1
commit 792b4d2d75
2 changed files with 7 additions and 1 deletions
+5 -1
View File
@@ -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');
}
+2
View File
@@ -1,3 +1,5 @@
07.06.2023 фикс рассинхрона пароля в ss
<code>git pull</code>
07.06.2023 установка таймера включает пир, если он был выключен
<code>git pull</code>
07.06.2023 адаптация конфига wg под текущий домен/айпи/порт