mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[internally screaming] Follow-up of 116a15f9f1
... breaking cert regen conf on some setup ...
This commit is contained in:
parent
9d2dac5062
commit
1d2b1d9601
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue