Commit Graph

2 Commits

Author SHA1 Message Date
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
Hamed e409ed7244 feat(nodes): add remote Xray and panel restart actions (#6970)
An operator running a master with sub-nodes could probe or update a node from the Nodes page but had to log in to the node, or SSH into it, to restart Xray or the panel (#6937).

Add Restart Xray and Restart panel to the node actions, behind a confirmation. Xray restarts through the node runtime; the panel restart is a new Remote call that the node accepts with node-admin credentials, the authority that already covers updatePanel. Both are refused for a disabled node.
2026-11-24 16:55:08 +03:30