Files
dnscrypt-osxclient/CU2/common.inc
T
Frank Denis f9a7da871a Introduce a bunch of scripts to start the proxy, cope with captive portals,
and replace this infamous and totally broken dns-updater horror.
2012-07-29 22:12:33 -07:00

18 lines
489 B
PHP

DNSCRYPT_BASE_DIR='/var/run/dnscrypt'
STATES_DIR="${DNSCRYPT_BASE_DIR}/states"
INTERFACE_UNBOUND="127.0.0.53"
INTERFACE_UNBOUND_MASK="24"
INTERFACE_PROXY="127.0.0.54"
INTERFACE_PROXY_MASK="24"
INTERFACE_PROBES="127.0.0.55"
INTERFACE_PROBES_MASK="24"
init_interfaces() {
sudo ifconfig lo0 alias ${INTERFACE_UNBOUND}/${INTERFACE_UNBOUND_MASK}
sudo ifconfig lo0 alias ${INTERFACE_PROXY}/${INTERFACE_PROXY_MASK}
sudo ifconfig lo0 alias ${INTERFACE_PROBES}/${INTERFACE_PROBES_MASK}
}