Files
mirror-3x-ui/internal
Sanaei 2cfeec3b99 feat(cli): name the inbounds a settings reset leaves on the panel's ports
x-ui setting -reset puts the panel back on its default ports, 2053 and
2096 for the subscription server. An inbound already listening on one of
them then shares a socket with the panel, and Xray cannot start. The
other writers of those ports refuse such a change, but a reset is the
way back into a panel whose port was forgotten, so it must not be
refused.

After the reset the command now lists every enabled local inbound that
collides with a panel socket and says that Xray will not start until one
of the two moves. Disabled inbounds are left out: they bind nothing, and
enabling one is refused by the port check.

Printing the lines from main.go is wiring no test reaches; running
x-ui setting -reset on a database with inbounds on 2053 and 2096 prints
one warning for each.
2026-11-29 15:08:07 +03:30
..
2026-10-25 20:08:14 +01:00