Handle case where /proc/net/tcp doesn't work
authorJamie Cameron <jcameron@webmin.com>
Tue, 3 Jun 2008 06:13:26 +0000 (06:13 +0000)
committerJamie Cameron <jcameron@webmin.com>
Tue, 3 Jun 2008 06:13:26 +0000 (06:13 +0000)
miniserv.pl

index 1d13c61..53c037d 100755 (executable)
@@ -678,7 +678,7 @@ while(1) {
                                                }
                                        close(TCP);
                                        }
-                               else {
+                               if (!$localauth_user) {
                                        # Call lsof for the info
                                        local $lsofpid = open(LSOF,
                                                "$config{'localauth'} -i TCP\@127.0.0.1:$peerp |");