mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-11-29 22:14:50 +03:00
2cfeec3b99
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.