From 5423582bef3ee38951ace858ff3d5f03deb47241 Mon Sep 17 00:00:00 2001 From: Marek Becka Date: Fri, 22 Nov 2013 16:36:46 +0100 Subject: [PATCH] turn off automatic local port enabling if all ports summary is set --- src/tcpconns.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tcpconns.c b/src/tcpconns.c index 8fbc1a48..7c427e5f 100644 --- a/src/tcpconns.c +++ b/src/tcpconns.c @@ -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); -- 2.30.2