fix a misunderstood default action of 'ipv6_disabled' option. #105

This commit is contained in:
Jordi Sanfeliu 2015-09-01 16:37:59 +02:00
parent 73fd003e7a
commit 1aae2d8461
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}