Update setup.gen

This commit is contained in:
darnix1 2025-04-25 20:25:30 -06:00 committed by GitHub
parent 0218baa208
commit 333a09c69b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -142,9 +142,10 @@ msg -bar
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)
[[ "$MIP" != "$MIP2" ]] && IP="$MIP2" || IP="$MIP"
MIP2=$(wget -qO- https://ipinfo.io/ip)
[[ "$MIP2" =~ ^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$ && "$MIP" != "$MIP2" ]] && IP="$MIP2" || IP="$MIP"
}
function_verify () {
unset keybot
echo -e "\033[7;49;35m ${TTini} GEN ChumoGH${TTcent}VPS ${TTfin} \033[0m"