From 5d7a0701d1715e15802968e50c36fd81ab5524cf Mon Sep 17 00:00:00 2001 From: PiBa-NL Date: Sun, 5 Apr 2015 16:38:08 +0200 Subject: diag_sockets show sockets listening on localhost this helps pick a free port for services using sockets bound to localhost, and helps determine if the service has at least started and bound the port without needing to go through all 'connected' sockets as well --- usr/local/www/diag_sockets.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr/local/www') diff --git a/usr/local/www/diag_sockets.php b/usr/local/www/diag_sockets.php index b82f653..53daa3f 100644 --- a/usr/local/www/diag_sockets.php +++ b/usr/local/www/diag_sockets.php @@ -74,8 +74,8 @@ $showAllOption = $showAll ? "" : "?showAll"; $internet4 = shell_exec('sockstat -4'); $internet6 = shell_exec('sockstat -6'); } else { - $internet4 = shell_exec('sockstat -4lL'); - $internet6 = shell_exec('sockstat -6lL'); + $internet4 = shell_exec('sockstat -4l'); + $internet6 = shell_exec('sockstat -6l'); } foreach (array(&$internet4, &$internet6) as $tabindex => $table) { $elements = ($tabindex == 0 ? 7 : 7); -- cgit v1.1