From 1b962b12d40a43280de9ab4ed974d69613081bf4 Mon Sep 17 00:00:00 2001 From: w1r0x Date: Fri, 12 Aug 2016 10:39:50 +0300 Subject: [PATCH] Remove ending '.' in hostname. (for those fucking libs that knows nothing about RFC) --- surok/discovery.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/surok/discovery.py b/surok/discovery.py index 689463b..36eb77a 100644 --- a/surok/discovery.py +++ b/surok/discovery.py @@ -41,7 +41,7 @@ def do_query(fqdn): for rdata in query: info = str(rdata).split() - server = {'name': info[3], 'port': info[2]} + server = {'name': info[3][:-1], 'port': info[2]} servers.append(server) except DNSException: print("Could not resolve " + fqdn)