Fix route-level network strategy ignoring outbound restrictions

This commit is contained in:
世界
2026-11-25 21:25:46 +08:00
parent ce2448e1a9
commit 59069b3373
10 changed files with 40 additions and 82 deletions
+1 -1
View File
@@ -151,7 +151,7 @@ func (d *DefaultDialer) dialParallelInterfaceFastFallback(ctx context.Context, d
select {
case results <- dialResult{Conn: conn, primary: primary}:
case <-returned:
if primary && time.Since(startAt) <= fallbackDelay {
if primary && N.NetworkName(network) == N.NetworkTCP && time.Since(startAt) <= fallbackDelay {
resetFastFallback(time.Time{})
}
conn.Close()