Diff

mod_proxy65/mod_proxy65.lua @ 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
parent 70:d3afb1403aa7
child 73:adb9d1b879c2
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);