summaryrefslogtreecommitdiff
path: root/network/dnscrypt-wrapper/rc.dnscrypt-wrapper
diff options
context:
space:
mode:
Diffstat (limited to 'network/dnscrypt-wrapper/rc.dnscrypt-wrapper')
-rw-r--r--network/dnscrypt-wrapper/rc.dnscrypt-wrapper5
1 files changed, 4 insertions, 1 deletions
diff --git a/network/dnscrypt-wrapper/rc.dnscrypt-wrapper b/network/dnscrypt-wrapper/rc.dnscrypt-wrapper
index 4f84021dd3..edde4ebb06 100644
--- a/network/dnscrypt-wrapper/rc.dnscrypt-wrapper
+++ b/network/dnscrypt-wrapper/rc.dnscrypt-wrapper
@@ -1,7 +1,7 @@
#!/bin/bash
CONFIGFILE="/etc/default/dnscrypt-wrapper"
-DAEMON="/usr/bin/dnscrypt-wrapper"
+DAEMON="/usr/sbin/dnscrypt-wrapper"
. $CONFIGFILE
@@ -76,6 +76,9 @@ start_instance() {
if [ -n "${PROVIDERCERTFILE[$1]}" ]; then
OPTIONS="${OPTIONS} --provider-cert-file=${PROVIDERCERTFILE[$1]}"
fi
+ if [ "${UNAUTHENTICATED[$1]}" == "yes" ]; then
+ OPTIONS="${OPTIONS} --unauthenticated"
+ fi
if [ -n "${LOGFILE[$1]}" ]; then
OPTIONS="${OPTIONS} --logfile=${LOGFILE[$1]}"
fi