From 038cf34219ed6f7ad2fcdc6497d527de031989d1 Mon Sep 17 00:00:00 2001 From: "Shishkevich D." <135337715+shishkevichd@users.noreply.github.com> Date: Sun, 6 Jul 2025 15:20:41 +0700 Subject: chore: return automatic generation of shadowsocks keys --- web/html/modals/inbound_modal.html | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'web/html/modals/inbound_modal.html') diff --git a/web/html/modals/inbound_modal.html b/web/html/modals/inbound_modal.html index 99d182b9..8be213a8 100644 --- a/web/html/modals/inbound_modal.html +++ b/web/html/modals/inbound_modal.html @@ -104,6 +104,8 @@ } }, SSMethodChange() { + this.inModal.inbound.settings.password = RandomUtil.randomShadowsocksPassword(this.inModal.inbound.settings.method) + if (this.inModal.inbound.isSSMultiUser) { if (this.inModal.inbound.settings.shadowsockses.length ==0){ this.inModal.inbound.settings.shadowsockses = [new Inbound.ShadowsocksSettings.Shadowsocks()]; @@ -117,6 +119,9 @@ client.method = ""; }) } + this.inModal.inbound.settings.shadowsockses.forEach(client => { + client.password = RandomUtil.randomShadowsocksPassword(this.inModal.inbound.settings.method) + }) } else { if (this.inModal.inbound.settings.shadowsockses.length > 0){ this.inModal.inbound.settings.shadowsockses = []; -- cgit v1.2.3