aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_proxy65.lua
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2010-11-10 22:02:28 +0500
committerWaqas Hussain <waqas20@gmail.com>2010-11-10 22:02:28 +0500
commit70a1720215ff0fca915e54b0a5856f9c150999c9 (patch)
tree3072e8023ae623a7e2eed19841db5710ee289ae9 /plugins/mod_proxy65.lua
parent9b8fcd736fe50722e89cc02c47b8f1d34a4b314d (diff)
downloadprosody-70a1720215ff0fca915e54b0a5856f9c150999c9.tar.gz
prosody-70a1720215ff0fca915e54b0a5856f9c150999c9.zip
mod_proxy65: Use module:get_option() instead of configmanager.
Diffstat (limited to 'plugins/mod_proxy65.lua')
-rw-r--r--plugins/mod_proxy65.lua9
1 files changed, 4 insertions, 5 deletions
diff --git a/plugins/mod_proxy65.lua b/plugins/mod_proxy65.lua
index cb4c42a7..5d7507e3 100644
--- a/plugins/mod_proxy65.lua
+++ b/plugins/mod_proxy65.lua
@@ -16,7 +16,6 @@ end
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 server = require "net.server";
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" };