portlist: report a better process name for .Net on linux.

Fixes #1440.

Signed-off-by: David Anderson <danderson@tailscale.com>
This commit is contained in:
David Anderson
2021-03-03 19:00:41 -08:00
committed by Dave Anderson
parent ffa70a617d
commit ad6edf5ecd
4 changed files with 82 additions and 11 deletions

View File

@@ -101,13 +101,9 @@ func parsePortsNetstat(output string) List {
delete(m, lastport)
proc := trimline[1 : len(trimline)-1]
if proc == "svchost.exe" && lastline != "" {
p.Process = lastline
p.Process = argvSubject(lastline)
} else {
if strings.HasSuffix(proc, ".exe") {
p.Process = proc[:len(proc)-4]
} else {
p.Process = proc
}
p.Process = argvSubject(proc)
}
m[p] = nothing{}
} else {