generate proxy host correctly

This commit is contained in:
Zhenchao Li 2010-07-12 10:20:31 +08:00
parent d55ba9269e
commit 2fec9f56f3
1 changed files with 2 additions and 3 deletions

View File

@ -189,8 +189,7 @@ class JingleTransportSocks5(JingleTransport):
return
type_preference = 10
proxy_cand = []
socks5conn = ConnectionSocks5Bytestream()
socks5conn.name = self.ourjid
socks5conn = self.connection
proxyhosts = socks5conn._get_file_transfer_proxies_from_config(self.file_props)
if proxyhosts:
@ -204,7 +203,7 @@ class JingleTransportSocks5(JingleTransport):
c['candidate_id'] = self.connection.connection.getAnID()
c['port'] = proxyhost['port']
c['type'] = 'proxy'
c['jid'] = self.ourjid
c['jid'] = proxyhost['jid']
c['priority'] = (2**16) * type_preference
proxy_cand.append(c)
self.candidates += proxy_cand