@@ -1856,10 +1856,11 @@ _inithttp() {
18561856 _ACME_CURL=" $_ACME_CURL -g "
18571857 fi
18581858
1859- # from curl 7.76: return fail on HTTP errors but keep the body
1860- if _contains " $( curl --help http 2>&1 ) " " --fail-with-body" ; then
1861- _ACME_CURL=" $_ACME_CURL --fail-with-body "
1862- fi
1859+ # don't use --fail-with-body
1860+ # #from curl 7.76: return fail on HTTP errors but keep the body
1861+ # if _contains "$(curl --help http 2>&1)" "--fail-with-body"; then
1862+ # _ACME_CURL="$_ACME_CURL --fail-with-body "
1863+ # fi
18631864 fi
18641865
18651866 if [ -z " $_ACME_WGET " ] && _exists " wget" ; then
@@ -4023,15 +4024,15 @@ _ns_purge_cf() {
40234024
40244025# checks if cf server is available
40254026_ns_is_available_cf () {
4026- if _get " https://cloudflare-dns.com" " " 1 > /dev/null 2>&1 ; then
4027+ if _get " https://cloudflare-dns.com" " " 10 > /dev/null; then
40274028 return 0
40284029 else
40294030 return 1
40304031 fi
40314032}
40324033
40334034_ns_is_available_google () {
4034- if _get " https://dns.google" " " 1 > /dev/null 2>&1 ; then
4035+ if _get " https://dns.google" " " 10 > /dev/null; then
40354036 return 0
40364037 else
40374038 return 1
@@ -4047,7 +4048,7 @@ _ns_lookup_google() {
40474048}
40484049
40494050_ns_is_available_ali () {
4050- if _get " https://dns.alidns.com" " " 1 > /dev/null 2>&1 ; then
4051+ if _get " https://dns.alidns.com" " " 10 > /dev/null; then
40514052 return 0
40524053 else
40534054 return 1
@@ -4063,7 +4064,7 @@ _ns_lookup_ali() {
40634064}
40644065
40654066_ns_is_available_dp () {
4066- if _get " https://doh.pub" " " 1 > /dev/null 2>&1 ; then
4067+ if _get " https://doh.pub" " " 10 > /dev/null; then
40674068 return 0
40684069 else
40694070 return 1
0 commit comments