Fix: remove host if host is ip string
This commit is contained in:
parent
8f09aa0444
commit
9b229b15e7
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