diff --git a/src/common/file_props.py b/src/common/file_props.py
index 5741824f4b0723bbc74643a77158edc13766185f..aef5ccadd112b77be94a100b9242847fdae6d7bb 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 930288443753af869e639b4c4f1b7806576f67ca..fc928f89be870bd3a703b9d2b68a6ca30eca2f27 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