From 9ec733ab72124361b0e8ffa8509ad8fefbd3ea6b Mon Sep 17 00:00:00 2001 From: Mitchell Krog Date: Mon, 16 Dec 2019 16:55:59 +0200 Subject: [PATCH] Change the way we lookup local IP - setupngxblocker --- setup-ngxblocker | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/setup-ngxblocker b/setup-ngxblocker index 420666d34..ff1fb9d63 100755 --- a/setup-ngxblocker +++ b/setup-ngxblocker @@ -114,7 +114,8 @@ whitelist_ips() { mkdir -p $BOTS_DIR - ip=$(curl -s ifconfig.co) + #ip=$(curl -s ifconfig.co) + ip="$(dig +short myip.opendns.com @resolver1.opendns.com)" if ! grep "$ip" $conf >/dev/null 2>&1; then printf "\n%-17s %-15s %-s\n" "Whitelisting ip:" "$ip" "=> $conf" if [ "$DRY_RUN" = "N" ]; then