From 77776e1a623e2223a75d9d588cc6dd96539724fa Mon Sep 17 00:00:00 2001 From: Hamidreza <70919649+hamid-gh98@users.noreply.github.com> Date: Thu, 21 Dec 2023 15:39:09 +0330 Subject: [PATCH] [fix] redirect url it didn't redirect to the correct port !!! --- web/html/xui/settings.html | 4 +--- 1 file changed, 1 insertion(+), 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);