fix get ip err
This commit is contained in:
@@ -189,8 +189,8 @@ download() {
|
||||
|
||||
# get server ip
|
||||
get_ip() {
|
||||
export "$(_wget -4 -qO- https://cloudflare-dns.com/cdn-cgi/trace | grep ip=)" &>/dev/null
|
||||
[[ -z $ip ]] && export "$(_wget -6 -qO- https://cloudflare-dns.com/cdn-cgi/trace | grep ip=)" &>/dev/null
|
||||
export "$(_wget -4 -qO- https://one.one.one.one/cdn-cgi/trace | grep ip=)" &>/dev/null
|
||||
[[ -z $ip ]] && export "$(_wget -6 -qO- https://one.one.one.one/cdn-cgi/trace | grep ip=)" &>/dev/null
|
||||
}
|
||||
|
||||
# check background tasks status
|
||||
|
Reference in New Issue
Block a user