Add support for advanced parental controls, move the whole thing to 0.17 beta.

This commit is contained in:
Frank Denis
2012-09-25 22:40:45 +02:00
parent 578362d2f3
commit f16b2c2717
11 changed files with 286 additions and 12 deletions
@@ -18,6 +18,9 @@ HANDLERS_LOCK_FILE="/var/run/dnscrypt-handlers.lock"
DOMAINS_EXCEPTIONS_FILE="${CONTROL_DIR}/domains-exceptions"
DNSCRYPT_PROXY_PLUGINS_BASE_FILE="${CONTROL_DIR}/plugin"
STATIC_RESOLVERS_FILE="${CONTROL_DIR}/static-resolvers"
PLUGINS_ENABLED_FILE="${CONTROL_DIR}/plugins.enabled"
PARENTAL_CONTROLS_FILE="${CONTROL_DIR}/plugin-parental-controls.enabled"
INTERFACE_UNBOUND="127.0.0.53"
INTERFACE_UNBOUND_MASK="24"
@@ -0,0 +1,9 @@
#! /bin/sh
. ./common.inc
if [ -e "$PARENTAL_CONTROLS_FILE" ]; then
echo 'yes'
else
echo 'no'
fi
@@ -0,0 +1,7 @@
#! /bin/sh
. ./common.inc
rm -f "$PARENTAL_CONTROLS_FILE"
@@ -0,0 +1,8 @@
#! /bin/sh
. ./common.inc
echo 'libdcplugin_example_ldns_opendns_parental_control.la' > \
"$PARENTAL_CONTROLS_FILE"
touch "$PLUGINS_ENABLED_FILE"