[BETA] Fix whitelist-ips test

Fix way we check for local IP use dig
This commit is contained in:
Mitchell Krog 2019-12-16 17:40:58 +02:00
parent be61f73b9f
commit 0aba7c52dc
No known key found for this signature in database
GPG key ID: E02E9D10427B6A43

View file

@ -54,7 +54,7 @@ magenta=$(tput setaf 5)
cyan=$(tput setaf 6)
white=$(tput setaf 7)
defaultcolor=$(tput setaf default)
thisip=$(curl -s ifconfig.co)
thisip=$(dig +short myip.opendns.com @resolver1.opendns.com)
# ---------
# FUNCTIONS