gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [ascension] branch master updated: fixed the zone hierarchy


From: gnunet
Subject: [GNUnet-SVN] [ascension] branch master updated: fixed the zone hierarchy bug
Date: Thu, 23 May 2019 17:36:15 +0200

This is an automated email from the git hooks/post-receive script.

rexxnor pushed a commit to branch master
in repository ascension.

The following commit(s) were added to refs/heads/master by this push:
     new 91cf879  fixed the zone hierarchy bug
91cf879 is described below

commit 91cf87964cef7ac5b31b37367665224314da080e
Author: rexxnor <address@hidden>
AuthorDate: Thu May 23 17:35:16 2019 +0200

    fixed the zone hierarchy bug
---
 ascension/ascension.py | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/ascension/ascension.py b/ascension/ascension.py
index ad6e14d..4acb8af 100644
--- a/ascension/ascension.py
+++ b/ascension/ascension.py
@@ -597,16 +597,13 @@ class Ascender():
         # ("." is not a zone-cut in DNS, but always in GNS).
         for name in self.zone.nodes.keys():
             subzones = str(name).split('.')
-            # FIXME Christian: For some reason this fails spectacularly # how 
exactly?
-            for i in range(1, len(subzones)-1):
+            for i in range(1, len(subzones)):
                 subdomain = ".".join(subzones[i:])
-                # FIXME Christian this seems superfluous # that depends, does 
subzones already contain .domain?
                 zonename = "%s.%s" % (subdomain, self.domain)
                 ttl = self.minimum # new record, cannot use existing one, 
might want to use larger value
                 if self.subzonedict.get(zonename) is None:
-                    pkey = self.create_zone_and_get_pkey("%s.%s" %
-                                                         (zonename,
-                                                          self.domain))
+                    print("%s.%s" % (subdomain, self.domain))
+                    pkey = self.create_zone_and_get_pkey(zonename)
                     self.subzonedict[zonename] = (pkey, ttl)
 
         # Check if a delegated zone is available in GNS as per NS record

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]