Code

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 8fbc1a48a676de89a30715f4c7bd1742b8180948..7c427e5f940b1a018e25b50533c5d1fd978689db 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);