# HG changeset patch # User Waqas Hussain # Date 1291316672 -18000 # Node ID c4a6f686c52d39686b49a807f3fe242d3b37ceec # Parent 987bf8b60bc1db725997d6166d0eb3a3c761337c mod_proxy65: Allow loading on normal hosts. diff -r 987bf8b60bc1 -r c4a6f686c52d plugins/mod_proxy65.lua --- a/plugins/mod_proxy65.lua Fri Dec 03 00:02:53 2010 +0500 +++ b/plugins/mod_proxy65.lua Fri Dec 03 00:04:32 2010 +0500 @@ -10,9 +10,6 @@ module:load("proxy65", ); ]]-- -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 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 "*";