mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-11-02 19:25:05 +03:00
fix(sub): look up a socket child's fallback front on the child's own host
projectThroughFallbackMaster found the front of a unix-socket child by scanning every inbound's settings.fallbacks for that socket. A node's inbound settings are mirrored from the node, so a node could name any socket and have its own port, security and external proxies substituted into the subscription links of another host's child. A socket exists only on the host that binds it, so the lookup, and the same scan the inbounds page uses for share links, now considers only inbounds hosted where the child runs.
This commit is contained in:
@@ -294,6 +294,7 @@ export default function InboundsPage() {
|
||||
if (!dbInbound?.listen?.startsWith?.('@')) return dbInbound;
|
||||
for (const candidate of dbInbounds) {
|
||||
if (candidate.id === dbInbound.id) continue;
|
||||
if ((candidate.nodeId ?? 0) !== (dbInbound.nodeId ?? 0)) continue;
|
||||
if (!['trojan', 'vless'].includes(candidate.protocol)) continue;
|
||||
const candStream = coerceInboundJsonField(candidate.streamSettings) as { network?: string };
|
||||
if (candStream.network !== 'tcp') continue;
|
||||
|
||||
Reference in New Issue
Block a user