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,
'target': target,
'id': id,
'sid': sid,
'initiator': str(iq_obj.getFrom())
}
for attr in item.getAttrs():
@ -562,8 +563,8 @@ class Connection:
raise common.xmpp.NodeProcessed
def proxy_auth_ok(self, proxy):
''' cb, called after authentication to proxy server '''
file_props = self.files_props[proxy['id']]
'''cb, called after authentication to proxy server '''
file_props = self.files_props[proxy['sid']]
iq = common.xmpp.Protocol(name = 'iq', to = proxy['initiator'],
typ = 'set')
auth_id = "au_" + proxy['id']
@ -678,6 +679,7 @@ class Connection:
'state': 0,
'target': str(receiver),
'id': file_props['sid'],
'sid': file_props['sid'],
'initiator': proxy,
'host': host,
'port': str(_port),