# HG changeset patch # User Waqas Hussain # Date 1289408548 -18000 # Node ID e1259b6d7560d177e6959676c6b27ad21e25a7db # Parent c52b06de9b27bc02ad9b7f9a477350f3f1703a52 mod_proxy65: Use module:get_option() instead of configmanager. diff -r c52b06de9b27 -r e1259b6d7560 plugins/mod_proxy65.lua --- a/plugins/mod_proxy65.lua Wed Nov 10 21:48:28 2010 +0500 +++ b/plugins/mod_proxy65.lua Wed Nov 10 22:02:28 2010 +0500 @@ -16,7 +16,6 @@ local jid_split, jid_join, jid_compare = require "util.jid".split, require "util.jid".join, require "util.jid".compare; local st = require "util.stanza"; -local config_get = require "core.configmanager".get; local connlisteners = require "net.connlisteners"; local sha1 = require "util.hashes".sha1; local server = require "net.server"; @@ -24,10 +23,10 @@ local host, name = module:get_host(), "SOCKS5 Bytestreams Service"; 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 "*"; -local proxy_address = config_get(host, "core", "proxy65_address") or (proxy_interface ~= "*" and proxy_interface) or host; -local proxy_acl = config_get(host, "core", "proxy65_acl"); +local proxy_port = module:get_option("proxy65_port") or 5000; +local proxy_interface = module:get_option("proxy65_interface") or "*"; +local proxy_address = module:get_option("proxy65_address") or (proxy_interface ~= "*" and proxy_interface) or host; +local proxy_acl = module:get_option("proxy65_acl"); local max_buffer_size = 4096; local connlistener = { default_port = proxy_port, default_interface = proxy_interface, default_mode = "*a" };