diff --git a/Gestor/gerar.sh b/Gestor/gerar.sh index c968468..636ad29 100644 --- a/Gestor/gerar.sh +++ b/Gestor/gerar.sh @@ -75,7 +75,7 @@ rm -rf /etc/ADM-db check_ip () { MIP=$(ip addr | grep 'inet' | grep -v inet6 | grep -vE '127\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}' | grep -o -E '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}' | head -1) -MIP2=$(wget -qO- ipv4.icanhazip.com) +MIP2=$(wget -qO- https://ipinfo.io/ip) [[ "$MIP" != "$MIP2" ]] && IP="$MIP2" || IP="$MIP" echo "$IP" > /usr/bin/vendor_code }