diff --git a/src/yunohost/certificate.py b/src/yunohost/certificate.py index c9451c2be..2e4f1623d 100644 --- a/src/yunohost/certificate.py +++ b/src/yunohost/certificate.py @@ -818,11 +818,11 @@ def _regen_dnsmasq_if_needed(): for domainconf in domainsconf: # Look for the IP, it's in the lines with this format : - # address=/the.domain.tld/11.22.33.44 + # host-record=the.domain.tld,11.22.33.44 for line in open(domainconf).readlines(): - if not line.startswith("address"): + if not line.startswith("host-record"): continue - ip = line.strip().split("/")[2] + ip = line.strip().split(",")[-1] # Compared found IP to current IPv4 / IPv6 # IPv6 IPv4