Add a DISABLE_IPV6 knob to disable IPv6.

OpenDNS filtering doesn't work on IPv6, at least for people identified by
their IP address, so there should be a simple way, even if it's not directly
in the GUI, to use only IPv4.
This commit is contained in:
Frank Denis
2012-11-18 00:27:17 -08:00
parent a2daf52f1c
commit 1f13d0822e
2 changed files with 6 additions and 2 deletions
@@ -41,6 +41,8 @@ DOMAINS_EXCEPTIONS='
freebox.fr fritz.box intranet lan localdomain nowtv.com private routerlogin.net
'
DISABLE_IPV6='no'
export PATH="${DNSCRYPT_USR_BASE_DIR}/bin:${DNSCRYPT_USR_BASE_DIR}/scripts:$PATH"
init_interfaces() {
@@ -67,8 +67,10 @@ get_plugin_args() {
./stop-dnscrypt-proxy.sh
ipv6_supported="no"
ping6 -c 1 2620:0:ccc::2 > /dev/null 2>&1
[ $? = 0 ] && ipv6_supported="yes"
if [ x"$DISABLE_IPV6" = "xno" ]; then
ping6 -c 1 2620:0:ccc::2 > /dev/null 2>&1
[ $? = 0 ] && ipv6_supported="yes"
fi
familyshield_wanted="no"
[ -r "$FAMILYSHIELD_FILE" ] && familyshield_wanted="yes"