mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Fix the way we check the A record for xmpp
This commit is contained in:
parent
333347dbcd
commit
713d4926c9
1 changed files with 2 additions and 3 deletions
|
@ -610,10 +610,9 @@ def _prepare_certificate_signing_request(domain, key_file, output_folder):
|
|||
# For "parent" domains, include xmpp-upload subdomain in subject alternate names
|
||||
if domain in domain_list(exclude_subdomains=True)["domains"]:
|
||||
subdomain = "xmpp-upload." + domain
|
||||
try:
|
||||
_dns_ip_match_public_ip(get_public_ip(), subdomain)
|
||||
if dig(subdomain, "A", resolvers="force_external") == ("ok", [get_public_ip()]):
|
||||
csr.add_extensions([crypto.X509Extension("subjectAltName", False, "DNS:" + subdomain)])
|
||||
except YunohostError:
|
||||
else:
|
||||
logger.warning(m18n.n('certmanager_warning_subdomain_dns_record', subdomain=subdomain, domain=domain))
|
||||
|
||||
# Set the key
|
||||
|
|
Loading…
Add table
Reference in a new issue