From: Glen Huang Date: Mon, 24 Oct 2022 02:35:47 +0000 (+0800) Subject: acme: add dns_wait option X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=4e369cf78065b04b81fe6579a8137bd38041b075;p=feed%2Fpackages.git acme: add dns_wait option acme.sh by default use public DNS resolvers to check if TXT record was correctly added when using DNS-01. This can be undesirable in a private environment where the DNS server is not publicly accessible. This option allows bypassing such check and simply waiting for a specific length of time for the TXT record to take effect. Signed-off-by: Glen Huang --- diff --git a/net/acme-acmesh/files/hook.sh b/net/acme-acmesh/files/hook.sh index bbe23b4a1f..e736dc5996 100644 --- a/net/acme-acmesh/files/hook.sh +++ b/net/acme-acmesh/files/hook.sh @@ -87,6 +87,9 @@ get) elif [ "$calias" ]; then set -- "$@" --challenge-alias "$calias" fi + if [ "$dns_wait" ]; then + set -- "$@" --dnssleep "$dns_wait" + fi elif [ "$standalone" = 1 ]; then set -- "$@" --standalone --listen-v6 else diff --git a/net/acme-common/files/acme.sh b/net/acme-common/files/acme.sh index 24601a5025..bcf3d84518 100644 --- a/net/acme-common/files/acme.sh +++ b/net/acme-common/files/acme.sh @@ -59,6 +59,8 @@ load_options() { export days config_get standalone "$section" standalone 0 export standalone + config_get dns_wait "$section" dns_wait + export dns_wait config_get webroot "$section" webroot export webroot