From 5acdd72a1d26ae62cde55e96e06b25f079f876f2 Mon Sep 17 00:00:00 2001 From: Dreamacro <8615343+Dreamacro@users.noreply.github.com> 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