From bb6d5dc19ee3ef525288166039806cec3734fc96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xue=20Xianliang=20=E8=87=AA=E7=94=B1=E7=9A=84=E4=B8=96?= =?UTF-8?q?=E7=95=8C?= <146182012+GFW4Fun@users.noreply.github.com> Date: Mon, 24 Jun 2024 08:54:53 +0330 Subject: [PATCH] Update settings.html The code is copied and applied from the Alireza0/xui - Fix Restart Panel in New URL - Fix Restart Panel in 'x-ui-pro' --- web/html/xui/settings.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/web/html/xui/settings.html b/web/html/xui/settings.html index 96293daf..34082c95 100644 --- a/web/html/xui/settings.html +++ b/web/html/xui/settings.html @@ -523,6 +523,8 @@ this.loading(true); await PromiseUtil.sleep(5000); let { 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);