Update bypass action behavior for auto redirect

This commit is contained in:
世界
2025-12-27 13:33:58 +08:00
parent 95ccb837d3
commit 494990f914
11 changed files with 75 additions and 29 deletions

View File

@@ -479,7 +479,7 @@ func (t *Endpoint) PrepareConnection(network string, source M.Socksaddr, destina
Network: network,
Source: source,
Destination: destination,
}, routeContext, timeout)
}, routeContext, timeout, false)
if err != nil {
switch {
case rule.IsBypassed(err):

View File

@@ -480,7 +480,7 @@ func (t *Inbound) PrepareConnection(network string, source M.Socksaddr, destinat
Source: source,
Destination: destination,
InboundOptions: t.inboundOptions,
}, routeContext, timeout)
}, routeContext, timeout, false)
if err != nil {
switch {
case rule.IsBypassed(err):
@@ -541,7 +541,7 @@ func (t *autoRedirectHandler) PrepareConnection(network string, source M.Socksad
Source: source,
Destination: destination,
InboundOptions: t.inboundOptions,
}, routeContext, timeout)
}, routeContext, timeout, true)
if err != nil {
switch {
case rule.IsBypassed(err):

View File

@@ -140,7 +140,7 @@ func (w *Endpoint) PrepareConnection(network string, source M.Socksaddr, destina
Network: network,
Source: source,
Destination: destination,
}, routeContext, timeout)
}, routeContext, timeout, false)
if err != nil {
switch {
case rule.IsBypassed(err):