This commit is contained in:
Nikos Kouremenos 2005-06-14 15:14:23 +00:00
parent 123ad74370
commit 027d247f55
1 changed files with 1 additions and 1 deletions

View File

@ -70,7 +70,7 @@ class TCPsocket(PlugIn):
try:
answers = [x for x in dns.resolver.query(query, 'SRV')]
if answers:
host = str (answers[0].target)
host = str (answers[0].target)[:-1] #remove last .
port = int (answers[0].port)
break
except: