turn off automatic local port enabling if all ports summary is set
authorMarek Becka <marek.becka@superhosting.cz>
Fri, 22 Nov 2013 15:36:46 +0000 (16:36 +0100)
committerMarek Becka <marek.becka@superhosting.cz>
Fri, 22 Nov 2013 15:36:46 +0000 (16:36 +0100)
src/tcpconns.c

index 8fbc1a4..7c427e5 100644 (file)
@@ -744,7 +744,7 @@ static int conn_config (const char *key, const char *value)
 #if KERNEL_LINUX
 static int conn_init (void)
 {
-  if (port_list_head == NULL)
+  if (port_collect_total == 0 && port_list_head == NULL)
     port_collect_listening = 1;
 
   return (0);