Mercurial > libervia-backend
comparison src/plugins/plugin_xep_0065.py @ 662:4f747d7fde8c
core: importParams renamed to updateParams: it now updates the parameter instead of appending children if it find an existing one.
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 31 Oct 2013 17:14:15 +0100 |
parents | 49587e170f53 |
children | 03744d9ebc13 |
comparison
equal
deleted
inserted
replaced
661:d81f55a58c08 | 662:4f747d7fde8c |
---|---|
466 self.host = host | 466 self.host = host |
467 debug(_("registering")) | 467 debug(_("registering")) |
468 self.server_factory = Socks5ServerFactory(host, self.hash_sid_map, lambda sid, success, profile: self._killId(sid, success, profile=profile)) | 468 self.server_factory = Socks5ServerFactory(host, self.hash_sid_map, lambda sid, success, profile: self._killId(sid, success, profile=profile)) |
469 | 469 |
470 #parameters | 470 #parameters |
471 host.memory.importParams(XEP_0065.params) | 471 host.memory.updateParams(XEP_0065.params) |
472 host.memory.setDefault("IP", "File Transfer", self.getExternalIP) | 472 host.memory.setDefault("IP", "File Transfer", self.getExternalIP) |
473 port = int(self.host.memory.getParamA("Port", "File Transfer")) | 473 port = int(self.host.memory.getParamA("Port", "File Transfer")) |
474 | 474 |
475 info(_("Launching Socks5 Stream server on port %d"), port) | 475 info(_("Launching Socks5 Stream server on port %d"), port) |
476 reactor.listenTCP(port, self.server_factory) | 476 reactor.listenTCP(port, self.server_factory) |