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:
authorHamidreza <70919649+hamid-gh98@users.noreply.github.com>2023-12-21 15:09:09 +0300
committerGitHub <noreply@github.com>2023-12-21 15:09:09 +0300
commit77776e1a623e2223a75d9d588cc6dd96539724fa (patch)
treec54b6eee0caf80d1b09b92238518aa45ade00fa5 /web/html/xui/settings.html
parentc0d8f931da58bb4dd463329e30b3c7f98505f48c (diff)
[fix] redirect url
it didn't redirect to the correct port !!!
Diffstat (limited to 'web/html/xui/settings.html')
-rw-r--r--web/html/xui/settings.html4
1 files changed, 1 insertions, 3 deletions
diff --git a/web/html/xui/settings.html b/web/html/xui/settings.html
index 65268870..38037764 100644
--- a/web/html/xui/settings.html
+++ b/web/html/xui/settings.html
@@ -384,9 +384,7 @@
if (msg.success) {
this.loading(true);
await PromiseUtil.sleep(5000);
- 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;
+ let { webCertFile, webKeyFile, webDomain: host, webPort: port, webBasePath: base } = this.allSetting;
const isTLS = webCertFile !== "" || webKeyFile !== "";
const url = buildURL({ host, port, isTLS, base, path: "panel/settings" });
window.location.replace(url);