Mercurial > libervia-backend
diff plugins/plugin_xep_0065.py @ 21:633c5ed65701
parameters: new button type (not finished)
author | Goffi <goffi@goffi.org> |
---|---|
date | Sun, 08 Nov 2009 01:49:08 +0100 |
parents | fc8c202cda87 |
children | bb72c29f3432 |
line wrap: on
line diff
--- a/plugins/plugin_xep_0065.py Sun Nov 08 00:11:00 2009 +0100 +++ b/plugins/plugin_xep_0065.py Sun Nov 08 01:49:08 2009 +0100 @@ -468,8 +468,11 @@ self.server_factory = Socks5ServerFactory() self.server_factory.protocol.host = self.host #needed for progress CB self.client_factory = Socks5ClientFactory() + + #parameters host.memory.importParams(self, XEP_0065.params) host.memory.setDefault("IP", "File Transfert", self.getExternalIP) + port = int(self.host.memory.getParamV("Port", "File Transfert")) info("Launching Socks5 Stream server on port %d", port) reactor.listenTCP(port, self.server_factory)