diff --git a/src/common/xmpp/transports.py b/src/common/xmpp/transports.py index d4111da22..c9295b9ae 100644 --- a/src/common/xmpp/transports.py +++ b/src/common/xmpp/transports.py @@ -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