fix socks5 FT

This commit is contained in:
Jefry Lagrange 2011-10-29 14:31:06 -04:00
parent f35c3d9143
commit 8408b17758
1 changed files with 5 additions and 0 deletions

View File

@ -375,9 +375,14 @@ class JingleFileTransfer(JingleContent):
self.state = STATE_TRANSFERING
# It tells wether we start the transfer as client or server
type = None
if self.isOurCandUsed():
type = 'client'
streamhost_used = self.nominated_cand['our-cand']
else:
type = 'server'
streamhost_used = self.nominated_cand['peer-cand']
if streamhost_used['type'] == 'proxy':