From fb78bf0996f8412a93cc53240fb55f16212105dc Mon Sep 17 00:00:00 2001 From: Nathan Fritz Date: Thu, 18 Aug 2011 00:59:27 -0700 Subject: fixed manual address definition --- sleekxmpp/clientxmpp.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sleekxmpp/clientxmpp.py') diff --git a/sleekxmpp/clientxmpp.py b/sleekxmpp/clientxmpp.py index 3536e8e9..2e81eb3b 100644 --- a/sleekxmpp/clientxmpp.py +++ b/sleekxmpp/clientxmpp.py @@ -134,7 +134,8 @@ class ClientXMPP(BaseXMPP): connection. Defaults to True. """ self.session_started_event.clear() - address = (self.boundjid.host, 5222) + if not address: + address = (self.boundjid.host, 5222) return XMLStream.connect(self, address[0], address[1], use_tls=use_tls, reattempt=reattempt) -- cgit v1.2.3