diff options
author | louiz’ <louiz@louiz.org> | 2016-08-19 11:18:27 +0200 |
---|---|---|
committer | louiz’ <louiz@louiz.org> | 2016-08-19 11:18:27 +0200 |
commit | 9208bf5bf1ac442bd6c7ae451667962fd578d1b5 (patch) | |
tree | 3c83e610f453d7fc4de8af4b5da4235e2309022d /slixmpp/xmlstream/xmlstream.py | |
parent | f0f1698e465667d2180c451b0b7d5c30d7bd1491 (diff) | |
parent | eccd7f1c982409f7c1f507f86fd7c3937bdf75e9 (diff) | |
download | slixmpp-9208bf5bf1ac442bd6c7ae451667962fd578d1b5.tar.gz slixmpp-9208bf5bf1ac442bd6c7ae451667962fd578d1b5.tar.bz2 slixmpp-9208bf5bf1ac442bd6c7ae451667962fd578d1b5.tar.xz slixmpp-9208bf5bf1ac442bd6c7ae451667962fd578d1b5.zip |
Merge remote-tracking branch 'zejn/master'
Diffstat (limited to 'slixmpp/xmlstream/xmlstream.py')
-rw-r--r-- | slixmpp/xmlstream/xmlstream.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/slixmpp/xmlstream/xmlstream.py b/slixmpp/xmlstream/xmlstream.py index f11a4a16..bd6c4e6f 100644 --- a/slixmpp/xmlstream/xmlstream.py +++ b/slixmpp/xmlstream/xmlstream.py @@ -302,7 +302,8 @@ class XMLStream(asyncio.BaseProtocol): yield from self.loop.create_connection(lambda: self, self.address[0], self.address[1], - ssl=self.use_ssl) + ssl=self.use_ssl, + server_hostname=self.default_domain if self.use_ssl else None) except Socket.gaierror as e: self.event('connection_failed', 'No DNS record available for %s' % self.default_domain) |