changeset 72:2bf6c7c590a1

mod_proxy65: component register and deregister are with "_component" appended
author Thilo Cestonaro <thilo@cestona.ro>
date Sat, 31 Oct 2009 20:33:42 +0100
parents 3c18c2d03bc2
children adb9d1b879c2
files mod_proxy65/mod_proxy65.lua
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/mod_proxy65/mod_proxy65.lua	Fri Oct 30 21:11:42 2009 -0700
+++ b/mod_proxy65/mod_proxy65.lua	Sat Oct 31 20:33:42 2009 +0100
@@ -21,7 +21,7 @@
 local sha1 = require "util.hashes".sha1;
 
 local host, name = module:get_host(), "SOCKS5 Bytestreams Service";
-local sessions, transfers, component, replies_cache = {}, {}, {}, nil;
+local sessions, transfers, component, replies_cache = {}, {}, nil, {};
 
 local proxy_port = config_get(host, "core", "proxy65_port") or 5000;
 local proxy_interface = config_get(host, "core", "proxy65_interface") or "*";
@@ -136,7 +136,7 @@
 end
 
 module.unload = function()
-	componentmanager.deregister(host);
+	componentmanager.deregister_component(host);
 	connlisteners.deregister("proxy65");
 end
 
@@ -196,4 +196,4 @@
 end
 
 connlisteners.start('proxy65');
-component = componentmanager.register(host, handle_to_domain);
+component = componentmanager.register_component(host, handle_to_domain);