slixmpp is Python 3.4.4+, remove check for channel binding.
This commit is contained in:
parent
32839f5252
commit
c1562b76b2
@ -97,13 +97,7 @@ class FeatureMechanisms(BasePlugin):
|
|||||||
jid = self.xmpp.requested_jid.bare
|
jid = self.xmpp.requested_jid.bare
|
||||||
result[value] = creds.get('email', jid)
|
result[value] = creds.get('email', jid)
|
||||||
elif value == 'channel_binding':
|
elif value == 'channel_binding':
|
||||||
if hasattr(self.xmpp.socket, 'get_channel_binding'):
|
result[value] = self.xmpp.socket.get_channel_binding()
|
||||||
result[value] = self.xmpp.socket.get_channel_binding()
|
|
||||||
else:
|
|
||||||
log.debug("Channel binding not supported.")
|
|
||||||
log.debug("Use Python 3.3+ for channel binding and " + \
|
|
||||||
"SCRAM-SHA-1-PLUS support")
|
|
||||||
result[value] = None
|
|
||||||
elif value == 'host':
|
elif value == 'host':
|
||||||
result[value] = creds.get('host', self.xmpp.requested_jid.domain)
|
result[value] = creds.get('host', self.xmpp.requested_jid.domain)
|
||||||
elif value == 'realm':
|
elif value == 'realm':
|
||||||
|
Loading…
x
Reference in New Issue
Block a user