From 03e0f5079507c1177518c2032bd86663a0a992d9 Mon Sep 17 00:00:00 2001 From: ssendev Date: Thu, 18 Aug 2016 22:05:15 +0200 Subject: [PATCH] Allow to change root domain record via dyndns --- app/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views.py b/app/views.py index a33e6e1..756c413 100644 --- a/app/views.py +++ b/app/views.py @@ -762,12 +762,12 @@ def dyndns_update(): domain = None domain_segments = hostname.split('.') for index in range(len(domain_segments)): - domain_segments.pop(0) full_domain = '.'.join(domain_segments) potential_domain = Domain.query.filter(Domain.name == full_domain).first() if potential_domain in domains: domain = potential_domain break + domain_segments.pop(0) if not domain: history = History(msg="DynDNS update: attempted update of %s but it does not exist for this user" % hostname, created_by=current_user.username)