bugfix
This commit is contained in:
parent
123ad74370
commit
027d247f55
|
@ -70,7 +70,7 @@ class TCPsocket(PlugIn):
|
||||||
try:
|
try:
|
||||||
answers = [x for x in dns.resolver.query(query, 'SRV')]
|
answers = [x for x in dns.resolver.query(query, 'SRV')]
|
||||||
if answers:
|
if answers:
|
||||||
host = str (answers[0].target)
|
host = str (answers[0].target)[:-1] #remove last .
|
||||||
port = int (answers[0].port)
|
port = int (answers[0].port)
|
||||||
break
|
break
|
||||||
except:
|
except:
|
||||||
|
|
Loading…
Reference in New Issue