Fix override address

This commit is contained in:
世界
2025-02-02 23:17:31 +08:00
parent 4eed46ac59
commit 9db2d58545
3 changed files with 25 additions and 1 deletions

View File

@@ -586,7 +586,7 @@ func (r *Router) actionSniff(
return
}
} else {
if (metadata.InboundType == C.TypeSOCKS || metadata.InboundType == C.TypeMixed) && !metadata.Destination.IsFqdn() && !metadata.Destination.Addr.IsGlobalUnicast() {
if (metadata.InboundType == C.TypeSOCKS || metadata.InboundType == C.TypeMixed) && !metadata.Destination.IsFqdn() && !metadata.Destination.Addr.IsGlobalUnicast() && !metadata.RouteOriginalDestination.IsValid() {
metadata.Destination = destination
}
if len(packetBuffers) > 0 {