fix a TB in proxy_auth
This commit is contained in:
parent
38b9b59916
commit
67319b7008
|
@ -410,6 +410,7 @@ class Connection:
|
||||||
'state': 0,
|
'state': 0,
|
||||||
'target': target,
|
'target': target,
|
||||||
'id': id,
|
'id': id,
|
||||||
|
'sid': sid,
|
||||||
'initiator': str(iq_obj.getFrom())
|
'initiator': str(iq_obj.getFrom())
|
||||||
}
|
}
|
||||||
for attr in item.getAttrs():
|
for attr in item.getAttrs():
|
||||||
|
@ -562,8 +563,8 @@ class Connection:
|
||||||
raise common.xmpp.NodeProcessed
|
raise common.xmpp.NodeProcessed
|
||||||
|
|
||||||
def proxy_auth_ok(self, proxy):
|
def proxy_auth_ok(self, proxy):
|
||||||
''' cb, called after authentication to proxy server '''
|
'''cb, called after authentication to proxy server '''
|
||||||
file_props = self.files_props[proxy['id']]
|
file_props = self.files_props[proxy['sid']]
|
||||||
iq = common.xmpp.Protocol(name = 'iq', to = proxy['initiator'],
|
iq = common.xmpp.Protocol(name = 'iq', to = proxy['initiator'],
|
||||||
typ = 'set')
|
typ = 'set')
|
||||||
auth_id = "au_" + proxy['id']
|
auth_id = "au_" + proxy['id']
|
||||||
|
@ -678,6 +679,7 @@ class Connection:
|
||||||
'state': 0,
|
'state': 0,
|
||||||
'target': str(receiver),
|
'target': str(receiver),
|
||||||
'id': file_props['sid'],
|
'id': file_props['sid'],
|
||||||
|
'sid': file_props['sid'],
|
||||||
'initiator': proxy,
|
'initiator': proxy,
|
||||||
'host': host,
|
'host': host,
|
||||||
'port': str(_port),
|
'port': str(_port),
|
||||||
|
|
Loading…
Reference in New Issue