From 1aae2d8461e781122fbd40d78c5501d0c4ea8c5f Mon Sep 17 00:00:00 2001 From: Jordi Sanfeliu Date: Tue, 1 Sep 2015 16:37:59 +0200 Subject: [PATCH] fix a misunderstood default action of 'ipv6_disabled' option. #105 --- lib/port.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/port.pm b/lib/port.pm index 134881e..e992812 100644 --- a/lib/port.pm +++ b/lib/port.pm @@ -147,7 +147,7 @@ sub port_init { } $cmd = "iptables" . $config->{iptables_wait_lock}; if(grep {$_ eq $p} ("tcp6", "udp6")) { - if(lc($config->{ipv6_disabled}) ne "y") { + if(lc($config->{ipv6_disabled}) eq "y") { logger("$myself: IPv6 is explicitly disabled, you shouldn't want to monitor 'tcp6' or 'udp6' protocols."); next; }