]> git.proxmox.com Git - mirror_acme.sh.git/commitdiff
Merge pull request #4266 from skyksandr/master
authorneil <github@neilpang.com>
Fri, 3 Feb 2023 08:49:26 +0000 (16:49 +0800)
committerGitHub <noreply@github.com>
Fri, 3 Feb 2023 08:49:26 +0000 (16:49 +0800)
Vultr DNS: fix "grep: repetition-operator operand invalid" on FreeBSD

.github/workflows/dockerhub.yml
acme.sh

index e60d6f7fee053a0e94d35b2e6c2960663c67a840..48c44429c4ce813fab724fbfc5701ed8592093cb 100644 (file)
@@ -43,9 +43,9 @@ jobs:
       - name: checkout code\r
         uses: actions/checkout@v3\r
       - name: Set up QEMU\r
-        uses: docker/setup-qemu-action@v1\r
+        uses: docker/setup-qemu-action@v2\r
       - name: Set up Docker Buildx\r
-        uses: docker/setup-buildx-action@v1\r
+        uses: docker/setup-buildx-action@v2\r
       - name: login to docker hub\r
         run: |\r
           echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin\r
diff --git a/acme.sh b/acme.sh
index 53387117808d0f19e3fabea70539cef086bc5173..1df8a05358184dfe6e426d6ddfe2444df234b604 100755 (executable)
--- a/acme.sh
+++ b/acme.sh
@@ -1856,10 +1856,11 @@ _inithttp() {
       _ACME_CURL="$_ACME_CURL -g "
     fi
 
-    #from curl 7.76: return fail on HTTP errors but keep the body
-    if _contains "$(curl --help http 2>&1)" "--fail-with-body"; then
-      _ACME_CURL="$_ACME_CURL --fail-with-body "
-    fi
+    #don't use --fail-with-body
+    ##from curl 7.76: return fail on HTTP errors but keep the body
+    #if _contains "$(curl --help http 2>&1)" "--fail-with-body"; then
+    #  _ACME_CURL="$_ACME_CURL --fail-with-body "
+    #fi
   fi
 
   if [ -z "$_ACME_WGET" ] && _exists "wget"; then
@@ -4023,7 +4024,7 @@ _ns_purge_cf() {
 
 #checks if cf server is available
 _ns_is_available_cf() {
-  if _get "https://cloudflare-dns.com" "" 1 >/dev/null 2>&1; then
+  if _get "https://cloudflare-dns.com" "" 10 >/dev/null; then
     return 0
   else
     return 1
@@ -4031,7 +4032,7 @@ _ns_is_available_cf() {
 }
 
 _ns_is_available_google() {
-  if _get "https://dns.google" "" 1 >/dev/null 2>&1; then
+  if _get "https://dns.google" "" 10 >/dev/null; then
     return 0
   else
     return 1
@@ -4047,7 +4048,7 @@ _ns_lookup_google() {
 }
 
 _ns_is_available_ali() {
-  if _get "https://dns.alidns.com" "" 1 >/dev/null 2>&1; then
+  if _get "https://dns.alidns.com" "" 10 >/dev/null; then
     return 0
   else
     return 1
@@ -4063,7 +4064,7 @@ _ns_lookup_ali() {
 }
 
 _ns_is_available_dp() {
-  if _get "https://doh.pub" "" 1 >/dev/null 2>&1; then
+  if _get "https://doh.pub" "" 10 >/dev/null; then
     return 0
   else
     return 1