diff --git a/plugins/plugin_xep_0065.py b/plugins/plugin_xep_0065.py index 9b12f497..3b5cb078 100755 --- a/plugins/plugin_xep_0065.py +++ b/plugins/plugin_xep_0065.py @@ -453,6 +453,7 @@ class XEP_0065(): def sendFile(self, id, filepath, size): #lauching socks5 initiator + debug("Launching socks5 initiator") self.server_factory.protocol.mode = "initiator" self.server_factory.protocol.filepath = filepath self.server_factory.protocol.filesize = size diff --git a/plugins/plugin_xep_0096.py b/plugins/plugin_xep_0096.py index 5fc460cb..ef663617 100755 --- a/plugins/plugin_xep_0096.py +++ b/plugins/plugin_xep_0096.py @@ -145,7 +145,7 @@ class XEP_0096: si=offer.addElement('si','http://jabber.org/protocol/si') si["mime-type"]='text/plain' si["profile"]='http://jabber.org/protocol/si/profile/file-transfer' - file = si.addElement('file', 'http://jabber.org/protocol/si') + file = si.addElement('file', 'http://jabber.org/protocol/si/profile/file-transfer') file['name']=os.path.basename(filepath) file['size']=str(statinfo.st_size)