Temp remove ip6.korves.net

master
andryyy 2021-03-01 10:21:53 +01:00
parent 6b3ea28501
commit d3c0e2fc11
No known key found for this signature in database
GPG Key ID: 8EC34FF2794E25EF
2 changed files with 2 additions and 4 deletions

View File

@ -46,8 +46,7 @@ get_ipv6(){
local IPV6= local IPV6=
local IPV6_SRCS= local IPV6_SRCS=
local TRY= local TRY=
IPV6_SRCS[0]="ip6.korves.net" IPV6_SRCS[0]="ip6.mailcow.email"
IPV6_SRCS[1]="ip6.mailcow.email"
until [[ ! -z ${IPV6} ]] || [[ ${TRY} -ge 10 ]]; do until [[ ! -z ${IPV6} ]] || [[ ${TRY} -ge 10 ]]; do
IPV6=$(curl --connect-timeout 3 -m 10 -L6s ${IPV6_SRCS[$RANDOM % ${#IPV6_SRCS[@]} ]} | grep "^\([0-9a-fA-F]\{0,4\}:\)\{1,7\}[0-9a-fA-F]\{0,4\}$") IPV6=$(curl --connect-timeout 3 -m 10 -L6s ${IPV6_SRCS[$RANDOM % ${#IPV6_SRCS[@]} ]} | grep "^\([0-9a-fA-F]\{0,4\}:\)\{1,7\}[0-9a-fA-F]\{0,4\}$")
[[ ! -z ${TRY} ]] && sleep 1 [[ ! -z ${TRY} ]] && sleep 1

View File

@ -44,8 +44,7 @@ get_ipv6(){
local IPV6= local IPV6=
local IPV6_SRCS= local IPV6_SRCS=
local TRY= local TRY=
IPV6_SRCS[0]="ip6.korves.net" IPV6_SRCS[0]="ip6.mailcow.email"
IPV6_SRCS[1]="ip6.mailcow.email"
until [[ ! -z ${IPV6} ]] || [[ ${TRY} -ge 10 ]]; do until [[ ! -z ${IPV6} ]] || [[ ${TRY} -ge 10 ]]; do
IPV6=$(curl --connect-timeout 3 -m 10 -L6s ${IPV6_SRCS[$RANDOM % ${#IPV6_SRCS[@]} ]} | grep "^\([0-9a-fA-F]\{0,4\}:\)\{1,7\}[0-9a-fA-F]\{0,4\}$") IPV6=$(curl --connect-timeout 3 -m 10 -L6s ${IPV6_SRCS[$RANDOM % ${#IPV6_SRCS[@]} ]} | grep "^\([0-9a-fA-F]\{0,4\}:\)\{1,7\}[0-9a-fA-F]\{0,4\}$")
[[ ! -z ${TRY} ]] && sleep 1 [[ ! -z ${TRY} ]] && sleep 1