Update the list of resolvers after a successful switch to dnscrypt
This commit is contained in:
@@ -4,9 +4,8 @@
|
||||
|
||||
rm -f "$QUERY_LOG_FILE"
|
||||
rm -f "$DEBUG_LOG_FILE"
|
||||
rm -f "$RESOLVERS_LIST_STATE"
|
||||
|
||||
./clear-fw.sh
|
||||
|
||||
(sleep 600; exec ./update-resolvers-list.sh) &
|
||||
|
||||
exec ./handle-control-change.sh --boot
|
||||
|
||||
@@ -38,6 +38,7 @@ EXCEPTIONS_TMP_FILE="${EXCEPTIONS_FILE}.tmp"
|
||||
RESOLVERS_UPDATES_BASE_URL="http://download.dnscrypt.org/dnscrypt-proxy"
|
||||
RESOLVERS_LIST_BASE_DIR="/usr/local/share/dnscrypt-proxy"
|
||||
RESOLVERS_LIST_PUBLIC_KEY="RWQf6LRCGA9i53mlYecO4IzT51TGPpvWucNSCh1CBM0QTaLn73Y7GFO3"
|
||||
RESOLVERS_LIST_STATE="${STATES_DIR}/resolvers-updated"
|
||||
|
||||
INTERFACE_UNBOUND="127.0.0.53"
|
||||
INTERFACE_UNBOUND_MASK="24"
|
||||
|
||||
@@ -156,3 +156,7 @@ logger_debug "Current configuration doesn't seem to hijack all DNS queries"
|
||||
|
||||
mv "${DESCRIPTIONS_DIR}/${best_file}" \
|
||||
"${STATES_DIR}/dnscrypt-proxy-description" 2>/dev/null || exit 0
|
||||
|
||||
[ -e "RESOLVERS_LIST_STATE" ] && exit 0
|
||||
touch "$RESOLVERS_LIST_STATE"
|
||||
exec ./update-resolvers-list.sh
|
||||
|
||||
Reference in New Issue
Block a user