fix a TB in proxy_auth

This commit is contained in:
Dimitur Kirov 2005-08-07 13:24:21 +00:00
parent 38b9b59916
commit 67319b7008
1 changed files with 4 additions and 2 deletions

View File

@ -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():
@ -563,7 +564,7 @@ class Connection:
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),