mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
dns: Don't include subdomains stuff in dyndns update, because this probably ain't gonna work
This commit is contained in:
parent
ae03be3bad
commit
04487ed6bf
1 changed files with 8 additions and 1 deletions
|
@ -160,7 +160,14 @@ def _build_dns_conf(base_domain):
|
|||
ipv4 = get_public_ip()
|
||||
ipv6 = get_public_ip(6)
|
||||
|
||||
subdomains = _list_subdomains_of(base_domain)
|
||||
# If this is a ynh_dyndns_domain, we're not gonna include all the subdomains in the conf
|
||||
# Because dynette only accept a specific list of name/type
|
||||
# And the wildcard */A already covers the bulk of use cases
|
||||
if any(base_domain.endswith("." + ynh_dyndns_domain) for ynh_dyndns_domain in YNH_DYNDNS_DOMAINS):
|
||||
subdomains = []
|
||||
else:
|
||||
subdomains = _list_subdomains_of(base_domain)
|
||||
|
||||
domains_settings = {domain: domain_config_get(domain, export=True)
|
||||
for domain in [base_domain] + subdomains}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue