mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2025-01-04 00:23:43 +08:00
Fix: remove host if host is ip string
This commit is contained in:
parent
f53686103d
commit
5acdd72a1d
@ -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…
x
Reference in New Issue
Block a user