From 9b229b15e73fac2ad29595e58ef2f5b862a679a9 Mon Sep 17 00:00:00 2001 From: gVisor bot Date: Wed, 10 Mar 2021 12:11:45 +0800 Subject: [PATCH] Fix: remove host if host is ip string --- tunnel/tunnel.go | 1 + 1 file changed, 1 insertion(+) diff --git a/tunnel/tunnel.go b/tunnel/tunnel.go index d7ca4c80..41fb0b16 100644 --- a/tunnel/tunnel.go +++ b/tunnel/tunnel.go @@ -121,6 +121,7 @@ func preHandleMetadata(metadata *C.Metadata) error { // handle IP string on host if ip := net.ParseIP(metadata.Host); ip != nil { metadata.DstIP = ip + metadata.Host = "" } // preprocess enhanced-mode metadata