# HG changeset patch # User Matthew Wild # Date 1424885220 0 # Node ID e0d8caffa2094ba31e1c77664e57afb47c5d3962 # Parent 28411e97db940fe77212a100b126f34c4e628274 mod_onions: Depend on mod_s2s to avoid a traceback when loaded before mod_s2s diff -r 28411e97db94 -r e0d8caffa209 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;