mirror of
https://github.com/tailscale/tailscale.git
synced 2025-10-09 08:01:31 +00:00
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:

committed by
Dave Anderson

parent
ffa70a617d
commit
ad6edf5ecd
@@ -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 {
|
||||
|
Reference in New Issue
Block a user