Fix: remove host if host is ip string
This commit is contained in:
parent
f53686103d
commit
5acdd72a1d
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue