Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

127.0.0.54 => $INTERFACE_PROXY

  • Loading branch information...
commit 2ec8189abd8ec23f7efd3e1c8981d7d92db479e4 1 parent 4580601
@jedisct1 jedisct1 authored
View
4 DNSCrypt-Preference-Pane/DNSCrypt/extra/usr/scripts/switch-to-dnscrypt-if-required.sh
@@ -12,7 +12,7 @@ PAUSE_INCREMENT=0.1
pause=0
while [ -e "$DNSCRYPT_FILE" ]; do
current_resolvers=$(./get-current-resolvers.sh)
- if [ "$current_resolvers" = '127.0.0.54' ]; then
+ if [ "$current_resolvers" = "$INTERFACE_PROXY" ]; then
if [ ! -e "$PROXY_PID_FILE" ]; then
./start-dnscrypt-proxy.sh || ./switch-to-dhcp.sh
fi
@@ -20,7 +20,7 @@ while [ -e "$DNSCRYPT_FILE" ]; do
if [ $pause -lt $PAUSE_MAX ]; then
pause=$((pause + $PAUSE_INCREMENT))
fi
- sleep $pause
+ sleep $pause
./check-hijacking.sh || continue
./start-dnscrypt-proxy.sh || continue
./check-local-dns.sh || continue
Please sign in to comment.
Something went wrong with that request. Please try again.