From df7fa9927a9d049d510eac0287a5dca3159da884 Mon Sep 17 00:00:00 2001 From: "bbruns@gmail.com" Date: Mon, 31 Mar 2014 23:52:56 +0000 Subject: [PATCH] --- lib/iptables.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/iptables.inc b/lib/iptables.inc index 0d73496..1dc6680 100644 --- a/lib/iptables.inc +++ b/lib/iptables.inc @@ -200,7 +200,7 @@ function allow_resolvconf_servers { [[ ${type} != "nameserver" ]] && continue # If we see a : in the server variable, we are most likely dealing with an ipv6 address ([[ ${server} =~ ":" ]] && [[ ${IP_VERSION} = "ipv4" ]]) && continue - ([[ ${server} !~ ":" ]] && [[ ${IP_VERSION} = "ipv6" ]]) && continue + ([[ ! ${server} =~ ":" ]] && [[ ${IP_VERSION} = "ipv6" ]]) && continue ${debug} ${DebugColor} "${FUNCNAME}: Added ${server} to DNS client trusted list" ${VER_IPTABLES} -A ${OutPreRules} -p udp -s ${server} --sport 1024:65535 --dport 53 -j ACCEPT ${VER_IPTABLES} -A ${InPreRules} -p udp -d ${server} --dport 1024:65535 --sport 53 -j ACCEPT