From 93d52bc86c4725fdfbdb629e87bbb5d24abf7d37 Mon Sep 17 00:00:00 2001 From: mhsanaei Date: Sun, 11 Aug 2024 00:47:44 +0200 Subject: new - vmess security (inbound client side - outbound) --- web/html/xui/settings.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'web/html/xui/settings.html') diff --git a/web/html/xui/settings.html b/web/html/xui/settings.html index 2c5c62a0..f2379078 100644 --- a/web/html/xui/settings.html +++ b/web/html/xui/settings.html @@ -523,7 +523,9 @@ if (msg.success) { this.loading(true); await PromiseUtil.sleep(5000); - let { webCertFile, webKeyFile, webDomain: host, webPort: port, webBasePath: base } = this.allSetting; + var { webCertFile, webKeyFile, webDomain: host, webPort: port, webBasePath: base } = this.allSetting; + if (host == this.oldAllSetting.webDomain) host = null; + if (port == this.oldAllSetting.webPort) port = null; const isTLS = webCertFile !== "" || webKeyFile !== ""; const url = buildURL({ host, port, isTLS, base, path: "panel/settings" }); window.location.replace(url); -- cgit v1.2.3