generate proxy host correctly
This commit is contained in:
parent
d55ba9269e
commit
2fec9f56f3
|
@ -189,8 +189,7 @@ class JingleTransportSocks5(JingleTransport):
|
||||||
return
|
return
|
||||||
type_preference = 10
|
type_preference = 10
|
||||||
proxy_cand = []
|
proxy_cand = []
|
||||||
socks5conn = ConnectionSocks5Bytestream()
|
socks5conn = self.connection
|
||||||
socks5conn.name = self.ourjid
|
|
||||||
proxyhosts = socks5conn._get_file_transfer_proxies_from_config(self.file_props)
|
proxyhosts = socks5conn._get_file_transfer_proxies_from_config(self.file_props)
|
||||||
|
|
||||||
if proxyhosts:
|
if proxyhosts:
|
||||||
|
@ -204,7 +203,7 @@ class JingleTransportSocks5(JingleTransport):
|
||||||
c['candidate_id'] = self.connection.connection.getAnID()
|
c['candidate_id'] = self.connection.connection.getAnID()
|
||||||
c['port'] = proxyhost['port']
|
c['port'] = proxyhost['port']
|
||||||
c['type'] = 'proxy'
|
c['type'] = 'proxy'
|
||||||
c['jid'] = self.ourjid
|
c['jid'] = proxyhost['jid']
|
||||||
c['priority'] = (2**16) * type_preference
|
c['priority'] = (2**16) * type_preference
|
||||||
proxy_cand.append(c)
|
proxy_cand.append(c)
|
||||||
self.candidates += proxy_cand
|
self.candidates += proxy_cand
|
||||||
|
|
Loading…
Reference in New Issue