mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
commit
76c1abf020
1 changed files with 5 additions and 2 deletions
|
@ -429,7 +429,7 @@ def _get_dns_zone_for_domain(domain):
|
|||
for ynh_dyndns_domain in YNH_DYNDNS_DOMAINS:
|
||||
if domain.endswith("." + ynh_dyndns_domain):
|
||||
# Keep only foo.nohost.me even if we have subsub.sub.foo.nohost.me
|
||||
return '.'.join(domain.rsplit('.', 3)[-3:])
|
||||
return ".".join(domain.rsplit(".", 3)[-3:])
|
||||
|
||||
# Check cache
|
||||
cache_folder = "/var/cache/yunohost/dns_zones"
|
||||
|
@ -521,7 +521,10 @@ def _get_registrar_config_section(domain):
|
|||
|
||||
# TODO big project, integrate yunohost's dynette as a registrar-like provider
|
||||
# TODO big project, integrate other dyndns providers such as netlib.re, or cf the list of dyndns providers supported by cloudron...
|
||||
if any(dns_zone.endswith('.' + ynh_dyndns_domain) for ynh_dyndns_domain in YNH_DYNDNS_DOMAINS):
|
||||
if any(
|
||||
dns_zone.endswith("." + ynh_dyndns_domain)
|
||||
for ynh_dyndns_domain in YNH_DYNDNS_DOMAINS
|
||||
):
|
||||
registrar_infos["registrar"] = OrderedDict(
|
||||
{
|
||||
"type": "alert",
|
||||
|
|
Loading…
Add table
Reference in a new issue