Merge pull request #6800 from pgerber/ipv6-debug

Fix IPv6 URL when trying to fetch challenge ourselves for debugging
This commit is contained in:
neil
2026-02-22 22:35:25 +08:00
committed by GitHub
Unverified
+6 -1
View File
@@ -5181,7 +5181,12 @@ $_authorizations_map"
if [ "$DEBUG" ]; then
if [ "$vtype" = "$VTYPE_HTTP" ]; then
_debug "Debug: GET token URL."
_get "http://$d/.well-known/acme-challenge/$token" "" 1
if _isIPv6 "$d"; then
host="[$d]"
else
host="$d"
fi
_get "http://$host/.well-known/acme-challenge/$token" "" 1
fi
fi
_clearupwebbroot "$_currentRoot" "$removelevel" "$token"