[MASTER] change way we lookup local IP

This commit is contained in:
Mitchell Krog 2019-12-16 17:56:03 +02:00
parent 31ca020e14
commit 61c0d865f0
No known key found for this signature in database
GPG key ID: E02E9D10427B6A43

View file

@ -114,7 +114,6 @@ whitelist_ips() {
mkdir -p $BOTS_DIR
#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"