bugfix now SRV should work

This commit is contained in:
Nikos Kouremenos 2005-06-14 21:55:22 +00:00
parent 268fba26b4
commit f8ab62c2c4
1 changed files with 2 additions and 2 deletions

View File

@ -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