Skip to content
Snippets Groups Projects
Commit f8ab62c2 authored by nkour's avatar nkour
Browse files

bugfix now SRV should work

parent 268fba26
No related branches found
No related tags found
No related merge requests found
......@@ -70,9 +70,9 @@ class TCPsocket(PlugIn):
try:
answers = [x for x in dns.resolver.query(query, 'SRV')]
if answers:
host = str (answers[0].target)[:-1] #remove last .
host = str (answers[0].target)
port = int (answers[0].port)
break
break
except:
pass
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment