Skip to content

Commit

Permalink
Fix: remove host if host is ip string
Browse files Browse the repository at this point in the history
  • Loading branch information
Dreamacro committed Mar 10, 2021
1 parent f536861 commit 5acdd72
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tunnel/tunnel.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5acdd72

Please sign in to comment.