mirror of
https://github.com/shtorm-7/sing-box-extended.git
synced 2026-12-02 06:38:36 +00:00
Fix route-level network strategy ignoring outbound restrictions
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user