mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-11-28 21:44:50 +03:00
d0dc4550c2
Since #7205 the page polls its post-restart address before navigating. When the restart changes the panel's port or turns its TLS on or off, that address is another origin, and the panel's own CSP (connect-src 'self') rejects the probe exactly like a refused connection. The poll could never succeed, so every such restart showed the spinner for the full 90 seconds although the panel was back after five. Poll only a same-origin target, which is the reverse-proxy case the wait was added for. Another origin gets the restart delay alone, as before #7205. The mixed-content fallback goes with it: its only source was the http:// target the page used to build behind a TLS proxy.