Skip to content

Commit

Permalink
[fix] redirect url
Browse files Browse the repository at this point in the history
it didn't redirect to the correct port !!!
  • Loading branch information
hamid-gh98 committed Dec 21, 2023
1 parent c0d8f93 commit 77776e1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions web/html/xui/settings.html
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 77776e1

Please sign in to comment.