chore: respect the incoming context during JLS fallback

This commit is contained in:
wwqgtxx committed 2026-07-14 21:51:12 +08:00
1 parent 4d7ef85adb
commit 3f22309b51
1 file changed
+3 -1
+3 -1
View File
@@ -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
}