From 1c895779cebbb6ef2ba47f1cc1dbfa5e80a84bfd Mon Sep 17 00:00:00 2001
From: Yann Leboulanger <asterix@lagaule.org>
Date: Wed, 20 Jun 2012 23:58:23 +0200
Subject: [PATCH] fix sockes5 transfer

---
 src/common/file_props.py          | 1 +
 src/common/protocol/bytestream.py | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/common/file_props.py b/src/common/file_props.py
index 5741824f4b..aef5ccadd1 100644
--- a/src/common/file_props.py
+++ b/src/common/file_props.py
@@ -135,6 +135,7 @@ class FileProp(object):
         self.startexmpp = None
         self.session_type = None
         self.request_id = None
+        self.proxyhosts = None
 
     def getsid(self):
         # Getter of the property sid
diff --git a/src/common/protocol/bytestream.py b/src/common/protocol/bytestream.py
index 9302884437..fc928f89be 100644
--- a/src/common/protocol/bytestream.py
+++ b/src/common/protocol/bytestream.py
@@ -735,7 +735,7 @@ class ConnectionSocks5Bytestream(ConnectionBytestream):
             if file_props.stopped:
                 self.remove_transfer(file_props)
             else:
-                gajim.socks5queue.send_file(file_props, self.name, 'client')
+                gajim.socks5queue.send_file(file_props, self.name, 'server')
 
         raise xmpp.NodeProcessed
 
-- 
GitLab