aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2010-12-03 00:04:32 +0500
committerWaqas Hussain <waqas20@gmail.com>2010-12-03 00:04:32 +0500
commit77f3114a09c9fad281f70b7765175310a634af5e (patch)
tree9b7cb55eef9d756cf7e8faeac4a3a50afdf34c69 /plugins
parentca6a09b5da8c2587118c3a46c1ee2ebf26a37b8a (diff)
downloadprosody-77f3114a09c9fad281f70b7765175310a634af5e.tar.gz
prosody-77f3114a09c9fad281f70b7765175310a634af5e.zip
mod_proxy65: Allow loading on normal hosts.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_proxy65.lua5
1 files changed, 1 insertions, 4 deletions
diff --git a/plugins/mod_proxy65.lua b/plugins/mod_proxy65.lua
index d71c3d99..1dcaf79b 100644
--- a/plugins/mod_proxy65.lua
+++ b/plugins/mod_proxy65.lua
@@ -10,9 +10,6 @@ module:unload("proxy65");
module:load("proxy65", <proxy65_jid>);
]]--
-if module:get_host_type() ~= "component" then
- error("proxy65 should be loaded as a component, please see http://prosody.im/doc/components", 0);
-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";
@@ -21,7 +18,7 @@ local sha1 = require "util.hashes".sha1;
local server = require "net.server";
local host, name = module:get_host(), "SOCKS5 Bytestreams Service";
-local sessions, transfers, component, replies_cache = {}, {}, nil, {};
+local sessions, transfers, replies_cache = {}, {}, {};
local proxy_port = module:get_option("proxy65_port") or 5000;
local proxy_interface = module:get_option("proxy65_interface") or "*";