Files
mirror-3x-ui/internal/web/controller
Sanaei 606d988839 fix(settings): build the post-restart URL from the panel's own listener
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.
2026-11-25 17:26:08 +03:30
..