Fix: find process name by UDP network on macOS
This commit is contained in:
parent
2f234cf6bc
commit
592b6a785e
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue