Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMHSanaei <ho3ein.sanaei@gmail.com>2023-07-18 02:49:01 +0300
committerMHSanaei <ho3ein.sanaei@gmail.com>2023-07-18 02:49:01 +0300
commitc2e9ee36658a8549251df7fb37467baa55341a5f (patch)
tree25baf2f09f566d9aba8cae93274612af0cd5d750 /web/html/xui/inbound_modal.html
parent1f78842b707a1190b6a84aded269d664254a7f1d (diff)
update - shadowsocks
Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
Diffstat (limited to 'web/html/xui/inbound_modal.html')
-rw-r--r--web/html/xui/inbound_modal.html23
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;