removed the -H parameter from the 'ss' commands in order improve compatibility accross different Linux distributions. #196

This commit is contained in:
Jordi Sanfeliu 2018-01-22 17:42:10 +01:00
parent 85955397c8
commit 5459bca836
1 changed files with 2 additions and 2 deletions

View File

@ -180,7 +180,7 @@ sub netstat_update {
if($config->{os} eq "Linux") {
if (`which ss`) {
if(open(IN, "ss -Hna -f inet |")) {
if(open(IN, "ss -na -f inet |")) {
while(<IN>) {
m/^(\S+)\s+(\S+)/;
my $proto = $1 || '';
@ -204,7 +204,7 @@ sub netstat_update {
}
close(IN);
}
if(open(IN, "ss -Hna -f inet6 |")) {
if(open(IN, "ss -na -f inet6 |")) {
while(<IN>) {
m/^(\S+)\s+(\S+)/;
my $proto = $1 || '';