diff mod_onions/mod_onions.lua @ 1617:e0d8caffa209

mod_onions: Depend on mod_s2s to avoid a traceback when loaded before mod_s2s
author Matthew Wild <mwild1@gmail.com>
date Wed, 25 Feb 2015 17:27:00 +0000
parents cf32265eb4c7
children b3e3ad35391a
line wrap: on
line diff
--- 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;