Skip to content

Commit d4befeb

Browse files
authored
Merge pull request #4489 from acmesh-official/dev
sync
2 parents c8f48a4 + f7f1168 commit d4befeb

File tree

3 files changed

+13
-12
lines changed

3 files changed

+13
-12
lines changed

.github/workflows/dockerhub.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ jobs:
4343
- name: checkout code
4444
uses: actions/checkout@v3
4545
- name: Set up QEMU
46-
uses: docker/setup-qemu-action@v1
46+
uses: docker/setup-qemu-action@v2
4747
- name: Set up Docker Buildx
48-
uses: docker/setup-buildx-action@v1
48+
uses: docker/setup-buildx-action@v2
4949
- name: login to docker hub
5050
run: |
5151
echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin

acme.sh

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -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

dnsapi/dns_vultr.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ dns_vultr_rm() {
7878
return 1
7979
fi
8080

81-
_record_id="$(echo "$response" | tr '{}' '\n' | grep '"TXT"' | grep -- "$txtvalue" | tr ',' '\n' | grep -i 'id' | cut -d : -f 2)"
81+
_record_id="$(echo "$response" | tr '{}' '\n' | grep '"TXT"' | grep -- "$txtvalue" | tr ',' '\n' | grep -i 'id' | cut -d : -f 2 | tr -d '"')"
8282
_debug _record_id "$_record_id"
8383
if [ "$_record_id" ]; then
8484
_info "Successfully retrieved the record id for ACME challenge."
@@ -116,7 +116,7 @@ _get_root() {
116116
return 1
117117
fi
118118

119-
if printf "%s\n" "$response" | grep '^\{.*\}' >/dev/null; then
119+
if printf "%s\n" "$response" | grep -E '^\{.*\}' >/dev/null; then
120120
if _contains "$response" "\"domain\":\"$_domain\""; then
121121
_sub_domain="$(echo "$fulldomain" | sed "s/\\.$_domain\$//")"
122122
return 0

0 commit comments

Comments
 (0)