mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2025-01-09 10:49:35 +08:00
Fix: find process name by UDP network on macOS
This commit is contained in:
parent
13db80b23a
commit
36c61d8074
@ -70,7 +70,7 @@ func findProcessName(network string, ip net.IP, port int) (string, error) {
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
if !ip.Equal(srcIP) {
|
if !ip.Equal(srcIP) && (network == TCP || !srcIP.IsUnspecified()) {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user