fix ip addr issue
This commit is contained in:
@@ -1436,6 +1436,14 @@ try_enable_bbr() {
|
||||
|
||||
get_ip() {
|
||||
ip=$(curl -s https://ipinfo.io/ip)
|
||||
[[ -z $ip ]] && ip=$(curl -s https://api.ip.sb/ip)
|
||||
[[ -z $ip ]] && ip=$(curl -s https://api.ipify.org)
|
||||
[[ -z $ip ]] && ip=$(curl -s https://ip.seeip.org)
|
||||
[[ -z $ip ]] && ip=$(curl -s https://ifconfig.co/ip)
|
||||
[[ -z $ip ]] && ip=$(curl -s https://api.myip.com | grep -oE "([0-9]{1,3}\.){3}[0-9]{1,3}")
|
||||
[[ -z $ip ]] && ip=$(curl -s icanhazip.com)
|
||||
[[ -z $ip ]] && ip=$(curl -s myip.ipip.net | grep -oE "([0-9]{1,3}\.){3}[0-9]{1,3}")
|
||||
[[ -z $ip ]] && echo -e "\n$red 这垃圾小鸡扔了吧!$none\n" && exit
|
||||
}
|
||||
|
||||
error() {
|
||||
|
Reference in New Issue
Block a user