diff options
author | Lance Stout <lancestout@gmail.com> | 2012-06-20 19:29:08 -0700 |
---|---|---|
committer | Lance Stout <lancestout@gmail.com> | 2012-06-20 19:39:24 -0700 |
commit | e86444e5fb731c45cfebeaf54951d916c23d88ec (patch) | |
tree | fb9ecc7a0f90b29905c3fcc58e72bacaa8ad79b6 /sleekxmpp/xmlstream/xmlstream.py | |
parent | 36c11ad9de7c1b5a199aa5a4302e33085513c126 (diff) | |
download | slixmpp-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.py | 3 |
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. |