mirror of
https://github.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker.git
synced 2025-09-01 18:19:55 +00:00
[MASTER] change way we lookup local IP
This commit is contained in:
parent
31ca020e14
commit
61c0d865f0
1 changed files with 0 additions and 1 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Reference in a new issue