diff options
| author | Shishkevich D. <135337715+shishkevichd@users.noreply.github.com> | 2025-07-06 11:20:41 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-06 11:20:41 +0300 |
| commit | 038cf34219ed6f7ad2fcdc6497d527de031989d1 (patch) | |
| tree | cc9abc71c32468df7bbcd26be0e93ab80051d2da /web/html/modals/inbound_modal.html | |
| parent | 98a151747095569a1c2e184674e3187ba7ba19ba (diff) | |
chore: return automatic generation of shadowsocks keys
Diffstat (limited to 'web/html/modals/inbound_modal.html')
| -rw-r--r-- | web/html/modals/inbound_modal.html | 5 |
1 files changed, 5 insertions, 0 deletions
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 = []; |
