mirror of https://github.com/mikaku/Monitorix.git
fix a misunderstood default action of 'ipv6_disabled' option. #105
This commit is contained in:
parent
73fd003e7a
commit
1aae2d8461
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue