From 23672e5ef2d8ab949c5cb5943f011610b9441f23 Mon Sep 17 00:00:00 2001 From: Jordi Sanfeliu Date: Wed, 15 Jul 2020 10:58:22 +0200 Subject: [PATCH] fixed a bug in 'nginx.pm' introduced when added support of 'ss' command --- lib/nginx.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/nginx.pm b/lib/nginx.pm index 6f1c0ac..b54286e 100644 --- a/lib/nginx.pm +++ b/lib/nginx.pm @@ -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() { (undef, undef, undef, $pnum) = split(' ', $_); chomp($pnum);