diff options
Diffstat (limited to 'web/html/xui/inbound_modal.html')
| -rw-r--r-- | web/html/xui/inbound_modal.html | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/web/html/xui/inbound_modal.html b/web/html/xui/inbound_modal.html index 60244be4..65988b14 100644 --- a/web/html/xui/inbound_modal.html +++ b/web/html/xui/inbound_modal.html @@ -54,23 +54,11 @@ }, }; - const protocols = { - VMESS: Protocols.VMESS, - VLESS: Protocols.VLESS, - TROJAN: Protocols.TROJAN, - SHADOWSOCKS: Protocols.SHADOWSOCKS, - DOKODEMO: Protocols.DOKODEMO, - SOCKS: Protocols.SOCKS, - HTTP: Protocols.HTTP, - }; - new Vue({ delimiters: ['[[', ']]'], el: '#inbound-modal', data: { inModal: inModal, - Protocols: protocols, - SSMethods: SSMethods, delayedStart: false, get inbound() { return inModal.inbound; @@ -117,6 +105,17 @@ }); } }, + SSMethodChange() { + if (this.inModal.inbound.isSSMultiUser) { + if (this.inModal.inbound.settings.shadowsockses.length ==0){ + this.inModal.inbound.settings.shadowsockses = [new Inbound.ShadowsocksSettings.Shadowsocks()]; + } + } else { + if (this.inModal.inbound.settings.shadowsockses.length > 0){ + this.inModal.inbound.settings.shadowsockses = []; + } + } + }, setDefaultCertData(index) { inModal.inbound.stream.tls.certs[index].certFile = app.defaultCert; inModal.inbound.stream.tls.certs[index].keyFile = app.defaultKey; |
