mod_onions: Depend on mod_s2s to avoid a traceback when loaded before mod_s2s
authorMatthew Wild <mwild1@gmail.com>
Wed, 25 Feb 2015 17:27:00 +0000
changeset 1621 e0d8caffa209
parent 1620 28411e97db94
child 1622 c56baec031e8
mod_onions: Depend on mod_s2s to avoid a traceback when loaded before mod_s2s
mod_onions/mod_onions.lua
--- a/mod_onions/mod_onions.lua	Mon Feb 23 16:43:21 2015 -0700
+++ b/mod_onions/mod_onions.lua	Wed Feb 25 17:27:00 2015 +0000
@@ -19,6 +19,8 @@
 local byte = string.byte;
 local c = string.char;
 
+module:depends("s2s");
+
 local proxy_ip = module:get_option("onions_socks5_host") or "127.0.0.1";
 local proxy_port = module:get_option("onions_socks5_port") or 9050;
 local forbid_else = module:get_option("onions_only") or false;