mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2026-12-02 09:46:47 +00:00
chore: respect the incoming context during JLS fallback
This commit is contained in:
1 parent
4d7ef85adb
commit
3f22309b51
1 file changed
+3
-1
@@ -213,7 +213,9 @@ func relayFallback(ctx context.Context, inbound net.Conn, prefix []byte, config
|
||||
}
|
||||
inbound = N.NewCachedConn(inbound, prefix)
|
||||
upstream = newRateLimitedConn(upstream, config.RateLimit)
|
||||
N.Relay(inbound, upstream)
|
||||
if err = N.RelayContext(ctx, inbound, upstream); err != nil {
|
||||
return err
|
||||
}
|
||||
return ErrFallbackCompleted
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user