mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2025-09-10 20:26:19 +00:00
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'
This commit is contained in:
parent
58647c6496
commit
bb6d5dc19e
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue