mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-11-25 20:15:01 +03:00
606d988839
After Restart Panel the page guessed its next address from stored settings: https only when a certificate was configured, and on an IP entry the stored webPort. Behind a TLS-terminating proxy on a non-default port that sent the browser to http://host:port and onto the proxy's "plain HTTP request sent to HTTPS port" page; behind a published port it sent the browser to the panel's internal port. XUI_PORT and a certificate pair that does not load were not accounted for either. The restart call now answers with the listener that took it and the one the restarted panel opens, both computed where the truth is. The page follows a scheme or port change only where its own address matches the serving listener, so a proxy or port mapping keeps the address the browser reached it on. A panel reached directly by name now also follows a changed port instead of staying on the dead one.
581 KiB
581 KiB