mirror of
https://github.com/openwrt/packages.git
synced 2025-12-21 23:34:31 +04:00
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 <i@glenhuang.com>
This commit is contained in:
@@ -87,6 +87,9 @@ get)
|
|||||||
elif [ "$calias" ]; then
|
elif [ "$calias" ]; then
|
||||||
set -- "$@" --challenge-alias "$calias"
|
set -- "$@" --challenge-alias "$calias"
|
||||||
fi
|
fi
|
||||||
|
if [ "$dns_wait" ]; then
|
||||||
|
set -- "$@" --dnssleep "$dns_wait"
|
||||||
|
fi
|
||||||
elif [ "$standalone" = 1 ]; then
|
elif [ "$standalone" = 1 ]; then
|
||||||
set -- "$@" --standalone --listen-v6
|
set -- "$@" --standalone --listen-v6
|
||||||
else
|
else
|
||||||
|
|||||||
@@ -59,6 +59,8 @@ load_options() {
|
|||||||
export days
|
export days
|
||||||
config_get standalone "$section" standalone 0
|
config_get standalone "$section" standalone 0
|
||||||
export standalone
|
export standalone
|
||||||
|
config_get dns_wait "$section" dns_wait
|
||||||
|
export dns_wait
|
||||||
|
|
||||||
config_get webroot "$section" webroot
|
config_get webroot "$section" webroot
|
||||||
export webroot
|
export webroot
|
||||||
|
|||||||
Reference in New Issue
Block a user