fixed a bug in 'nginx.pm' introduced when added support of 'ss' command

This commit is contained in:
Jordi Sanfeliu 2020-07-15 10:58:22 +02:00
parent 6ead94fc88
commit 23672e5ef2
1 changed files with 1 additions and 1 deletions

View File

@ -581,7 +581,7 @@ sub nginx_cgi {
if($config->{os} eq "Linux") {
my $cmd = $nginx->{cmd} || "";
if(!$cmd || $cmd eq "ss") {
open(IN, "ss -nl --$pp |");
open(IN, "ss -nl --tcp |");
while(<IN>) {
(undef, undef, undef, $pnum) = split(' ', $_);
chomp($pnum);