From 9e4e59cc2656e382870123852ff9c45047b7a75d Mon Sep 17 00:00:00 2001 From: earnolmartin Date: Tue, 23 Mar 2021 09:53:27 -0600 Subject: [PATCH] Added More IP Lookup Services --- ehcp/ehcpforceupdate.sh | 6 ++++++ ehcp/install_main.sh | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/ehcp/ehcpforceupdate.sh b/ehcp/ehcpforceupdate.sh index 1fc334a..02f908b 100755 --- a/ehcp/ehcpforceupdate.sh +++ b/ehcp/ehcpforceupdate.sh @@ -3085,6 +3085,12 @@ function fixQuotaForEmailsPostfix3x(){ function getServerIPAddr(){ MYIP=$(wget -qO- "https://dynamix.run/ip.php" | xargs) + if [ $? -ne 0 ] || [ -z "$MYIP" ]; then + MYIP=$(wget -qO- "http://dinofly.com/ip.php" | xargs) + fi + if [ $? -ne 0 ] || [ -z "$MYIP" ]; then + MYIP=$(wget -qO- "https://hostmon.tk/ip.php" | xargs) + fi } function installBadBotsBlockerNginx(){ diff --git a/ehcp/install_main.sh b/ehcp/install_main.sh index 5519194..424b7f8 100755 --- a/ehcp/install_main.sh +++ b/ehcp/install_main.sh @@ -2730,6 +2730,12 @@ function fixQuotaForEmailsPostfix3x(){ function getServerIPAddr(){ MYIP=$(wget -qO- "https://dynamix.run/ip.php" | xargs) + if [ $? -ne 0 ] || [ -z "$MYIP" ]; then + MYIP=$(wget -qO- "http://dinofly.com/ip.php" | xargs) + fi + if [ $? -ne 0 ] || [ -z "$MYIP" ]; then + MYIP=$(wget -qO- "https://hostmon.tk/ip.php" | xargs) + fi } function installBadBotsBlockerNginx(){