diff --git a/lib/netstat.pm b/lib/netstat.pm index beca12e..8fdb871 100644 --- a/lib/netstat.pm +++ b/lib/netstat.pm @@ -181,7 +181,7 @@ sub netstat_update { if($config->{os} eq "Linux") { my $cmd = $config->{netstat}->{cmd} || ""; if(!$cmd || $cmd eq "ss") { - if(open(IN, "ss -na -f inet |")) { + if(open(IN, "ss -naut -f inet |")) { while() { m/^(\S+)\s+(\S+)/; my $proto = $1 || ''; @@ -205,7 +205,7 @@ sub netstat_update { } close(IN); } - if(open(IN, "ss -na -f inet6 |")) { + if(open(IN, "ss -naut -f inet6 |")) { while() { m/^(\S+)\s+(\S+)/; my $proto = $1 || '';