diff options
| author | mhsanaei <ho3ein.sanaei@gmail.com> | 2024-08-11 01:47:44 +0300 |
|---|---|---|
| committer | mhsanaei <ho3ein.sanaei@gmail.com> | 2024-08-11 01:47:44 +0300 |
| commit | 93d52bc86c4725fdfbdb629e87bbb5d24abf7d37 (patch) | |
| tree | ffd23266cd3118484dcd012e675e0e2b110e542c /web/html/xui/settings.html | |
| parent | bda5c2c915977e0cbf9de867d918508ef688dd45 (diff) | |
new - vmess security (inbound client side - outbound)
Diffstat (limited to 'web/html/xui/settings.html')
| -rw-r--r-- | web/html/xui/settings.html | 4 |
1 files changed, 3 insertions, 1 deletions
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); |
