diff --git a/pkg/actions/net/port.go b/pkg/actions/net/port.go index f3f15da53b..0408a4132a 100644 --- a/pkg/actions/net/port.go +++ b/pkg/actions/net/port.go @@ -104,7 +104,7 @@ func actionUsedPortsNetstat() carapace.Action { default: executable = "unknown" } - vals = append(vals, splitted[1], "used by: "+executable) + vals = append(vals, splitted[len(splitted)-1], "used by: "+executable) } } }