Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Acme.Sh
Commits
c9a55f39
Commit
c9a55f39
authored
Oct 29, 2022
by
neil
Browse files
fix doh
https://github.com/acmesh-official/acme.sh/issues/4369
parent
1c16931e
Changes
1
Hide whitespace changes
Inline
Side-by-side
acme.sh
View file @
c9a55f39
...
@@ -4050,8 +4050,7 @@ _ns_lookup_dp() {
...
@@ -4050,8 +4050,7 @@ _ns_lookup_dp() {
_ns_lookup_impl "$_cf_ep" "$_cf_ld" "$_cf_ld_type"
_ns_lookup_impl "$_cf_ep" "$_cf_ld" "$_cf_ld_type"
}
}
#domain, type
_ns_select_doh() {
_ns_lookup() {
if [ -z "$DOH_USE" ]; then
if [ -z "$DOH_USE" ]; then
_debug "Detect dns server first."
_debug "Detect dns server first."
if _ns_is_available_cf; then
if _ns_is_available_cf; then
...
@@ -4070,7 +4069,11 @@ _ns_lookup() {
...
@@ -4070,7 +4069,11 @@ _ns_lookup() {
_err "No doh"
_err "No doh"
fi
fi
fi
fi
}
#domain, type
_ns_lookup() {
_ns_select_doh
if [ "$DOH_USE" = "$DOH_CLOUDFLARE" ] || [ -z "$DOH_USE" ]; then
if [ "$DOH_USE" = "$DOH_CLOUDFLARE" ] || [ -z "$DOH_USE" ]; then
_ns_lookup_cf "$@"
_ns_lookup_cf "$@"
elif [ "$DOH_USE" = "$DOH_GOOGLE" ]; then
elif [ "$DOH_USE" = "$DOH_GOOGLE" ]; then
...
@@ -4093,6 +4096,7 @@ __check_txt() {
...
@@ -4093,6 +4096,7 @@ __check_txt() {
_debug "_c_txtdomain" "$_c_txtdomain"
_debug "_c_txtdomain" "$_c_txtdomain"
_debug "_c_aliasdomain" "$_c_aliasdomain"
_debug "_c_aliasdomain" "$_c_aliasdomain"
_debug "_c_txt" "$_c_txt"
_debug "_c_txt" "$_c_txt"
_ns_select_doh
_answers="$(_ns_lookup "$_c_aliasdomain" TXT)"
_answers="$(_ns_lookup "$_c_aliasdomain" TXT)"
_contains "$_answers" "$_c_txt"
_contains "$_answers" "$_c_txt"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment