summaryrefslogtreecommitdiff
path: root/sleekxmpp/xmlstream/xmlstream.py
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2012-06-20 19:29:08 -0700
committerLance Stout <lancestout@gmail.com>2012-06-20 19:39:24 -0700
commite86444e5fb731c45cfebeaf54951d916c23d88ec (patch)
treefb9ecc7a0f90b29905c3fcc58e72bacaa8ad79b6 /sleekxmpp/xmlstream/xmlstream.py
parent36c11ad9de7c1b5a199aa5a4302e33085513c126 (diff)
downloadslixmpp-e86444e5fb731c45cfebeaf54951d916c23d88ec.tar.gz
slixmpp-e86444e5fb731c45cfebeaf54951d916c23d88ec.tar.bz2
slixmpp-e86444e5fb731c45cfebeaf54951d916c23d88ec.tar.xz
slixmpp-e86444e5fb731c45cfebeaf54951d916c23d88ec.zip
Make the use of IPv6 configurable.
Set self.use_ipv6 = False before connecting. Fixes issue #175
Diffstat (limited to 'sleekxmpp/xmlstream/xmlstream.py')
-rw-r--r--sleekxmpp/xmlstream/xmlstream.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/sleekxmpp/xmlstream/xmlstream.py b/sleekxmpp/xmlstream/xmlstream.py
index 4e7b4050..a1b6ccd6 100644
--- a/sleekxmpp/xmlstream/xmlstream.py
+++ b/sleekxmpp/xmlstream/xmlstream.py
@@ -1018,7 +1018,8 @@ class XMLStream(object):
self.configure_dns(resolver, domain=domain, port=port)
return resolve(domain, port, service=self.dns_service,
- resolver=resolver)
+ resolver=resolver,
+ use_ipv6=self.use_ipv6)
def pick_dns_answer(self, domain, port=None):
"""Pick a server and port from DNS answers.