Fix override address

This commit is contained in:
世界
2025-02-02 23:17:31 +08:00
parent 74920b44ac
commit b01fe5d364
3 changed files with 8 additions and 2 deletions

View File

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