1
0
mirror of https://github.com/shirou/gopsutil.git synced 2025-05-10 19:29:14 +08:00

Merge pull request #1019 from MashaSamoylova/unix-udp4-fix

Fix lsof args for udp4 in unix
This commit is contained in:
Lomanic 2021-01-11 20:29:18 +01:00 committed by GitHub
commit 8fd13bfa55
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -63,7 +63,7 @@ func ConnectionsPidWithContext(ctx context.Context, kind string, pid int32) ([]C
case "udp":
args = append(args, "udp")
case "udp4":
args = append(args, "6udp")
args = append(args, "4udp")
case "udp6":
args = append(args, "6udp")
case "unix":

View File

@ -63,7 +63,7 @@ func ConnectionsPidWithContext(ctx context.Context, kind string, pid int32) ([]C
case "udp":
args = append(args, "udp")
case "udp4":
args = append(args, "6udp")
args = append(args, "4udp")
case "udp6":
args = append(args, "6udp")
case "unix":