3x-ui/sub
MHSanaei a40d85ce53
fix(sub): advertise routable inbound Listen in subscription links
resolveInboundAddress stopped using the inbound's bind Listen in 3.2.5/3.2.6, so a per-inbound Address/IP no longer appeared in generated subscription/share links - they always used the host the subscriber reached the panel on. The frontend QR path still honored Listen, so the panel and the subscription disagreed (issue #4798).

Restore advertising Listen when it is a routable host (real IP or hostname), reusing isRoutableHost and excluding unix-domain sockets. Loopback/wildcard binds still fall back to the subscriber host, keeping the earlier loopback-leak fix intact. Precedence is now node address > routable Listen > subscriber host; External Proxy still overrides everything.

Closes #4798
2026-06-02 22:01:43 +02:00
..
build_urls_test.go fix(sub): keep listen/bind IP out of subscription page URLs 2026-06-01 05:47:18 +02:00
default.json dokodemo-door, socks renamed to mixed, tunnel 2025-09-09 13:57:40 +02:00
dist.go feat(inbounds): add sub/client link endpoints; hide panel version on login 2026-05-11 15:03:47 +02:00
links.go feat: complete Zod migration of frontend + bulk client batching (#4599) 2026-05-27 04:26:50 +02:00
links_test.go Feat/multi inbound clients (#4469) 2026-05-19 12:20:24 +02:00
sub.go feat: complete Zod migration of frontend + bulk client batching (#4599) 2026-05-27 04:26:50 +02:00
subClashService.go feat(hysteria2): emit UDP port hopping in subscriptions and share links 2026-06-02 15:01:18 +02:00
subClashService_test.go fix(sub): ensure unique Clash proxy names (#4641) 2026-06-01 18:07:01 +02:00
subController.go fix(sub): escape Clash subscription profile filename header (#4799) 2026-06-02 14:14:03 +02:00
subJsonService.go fix(sub): keep listen/bind IP out of subscription page URLs 2026-06-01 05:47:18 +02:00
subService.go fix(sub): advertise routable inbound Listen in subscription links 2026-06-02 22:01:43 +02:00
subService_test.go fix(sub): advertise routable inbound Listen in subscription links 2026-06-02 22:01:43 +02:00
subService_userinfo_test.go fix(sub): source Userinfo total/expiry from client config in multi-node (#4645) 2026-06-01 21:27:50 +02:00