diff options
| author | MHSanaei <ho3ein.sanaei@gmail.com> | 2023-07-27 11:28:12 +0300 |
|---|---|---|
| committer | MHSanaei <ho3ein.sanaei@gmail.com> | 2023-07-27 11:28:46 +0300 |
| commit | 145ea1e6f17cc766df266ca3eacf8dd688eb1930 (patch) | |
| tree | 3849ce3c15ba5d418ffda923270f1163f1e02124 /web/html/xui | |
| parent | 4cfed17650a2aa22346a4aee7aacf3ef6d0c667a (diff) | |
full multiuser shadowsocks
full multiuser shadowsocks +
fix logs after api changes
Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
Diffstat (limited to 'web/html/xui')
| -rw-r--r-- | web/html/xui/client_modal.html | 2 | ||||
| -rw-r--r-- | web/html/xui/form/protocol/shadowsocks.html | 2 | ||||
| -rw-r--r-- | web/html/xui/inbound_modal.html | 9 |
3 files changed, 11 insertions, 2 deletions
diff --git a/web/html/xui/client_modal.html b/web/html/xui/client_modal.html index a1d4dce8..e7c23098 100644 --- a/web/html/xui/client_modal.html +++ b/web/html/xui/client_modal.html @@ -70,7 +70,7 @@ case Protocols.VMESS: return clients.push(new Inbound.VmessSettings.Vmess()); case Protocols.VLESS: return clients.push(new Inbound.VLESSSettings.VLESS()); case Protocols.TROJAN: return clients.push(new Inbound.TrojanSettings.Trojan()); - case Protocols.SHADOWSOCKS: return clients.push(new Inbound.ShadowsocksSettings.Shadowsocks()); + case Protocols.SHADOWSOCKS: return clients.push(new Inbound.ShadowsocksSettings.Shadowsocks(clients[0].method)); default: return null; } }, diff --git a/web/html/xui/form/protocol/shadowsocks.html b/web/html/xui/form/protocol/shadowsocks.html index 8e16b143..486b372f 100644 --- a/web/html/xui/form/protocol/shadowsocks.html +++ b/web/html/xui/form/protocol/shadowsocks.html @@ -115,7 +115,7 @@ <a-select-option v-for="method in SSMethods" :value="method">[[ method ]]</a-select-option> </a-select> </a-form-item> - <a-form-item label='{{ i18n "password" }}'> + <a-form-item v-if="inbound.isSS2022" label='{{ i18n "password" }}'> <a-icon @click="inbound.settings.password = RandomUtil.randomShadowsocksPassword()" type="sync"> </a-icon> <a-input v-model.trim="inbound.settings.password" style="width: 250px;"></a-input> </a-form-item> diff --git a/web/html/xui/inbound_modal.html b/web/html/xui/inbound_modal.html index 65988b14..a10692cc 100644 --- a/web/html/xui/inbound_modal.html +++ b/web/html/xui/inbound_modal.html @@ -110,6 +110,15 @@ if (this.inModal.inbound.settings.shadowsockses.length ==0){ this.inModal.inbound.settings.shadowsockses = [new Inbound.ShadowsocksSettings.Shadowsocks()]; } + if (["aes-128-gcm", "aes-256-gcm", "chacha20-poly1305", "xchacha20-poly1305"].includes(this.inModal.inbound.settings.method)) { + this.inModal.inbound.settings.shadowsockses.forEach(client => { + client.method = this.inModal.inbound.settings.method; + }) + } else { + this.inModal.inbound.settings.shadowsockses.forEach(client => { + client.method = ""; + }) + } } else { if (this.inModal.inbound.settings.shadowsockses.length > 0){ this.inModal.inbound.settings.shadowsockses = []; |
