Fix direct outbound ignoring fallback delay

This commit is contained in:
世界
2026-10-23 19:57:08 +08:00
parent 2054998cec
commit 760f1edce5
+3
View File
@@ -245,6 +245,9 @@ func (h *Outbound) DialParallelNetwork(ctx context.Context, network string, dest
case N.NetworkUDP:
h.logger.InfoContext(ctx, "outbound packet connection to ", destination)
}
if fallbackDelay == 0 {
fallbackDelay = h.fallbackDelay
}
return dialer.DialParallelNetwork(ctx, h.dialer, network, destination, destinationAddresses, len(destinationAddresses) > 0 && destinationAddresses[0].Is6(), networkStrategy, networkType, fallbackNetworkType, fallbackDelay)
}