Software /
code /
prosody-modules
Comparison
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 |
parent | 1468:cf32265eb4c7 |
child | 1780:b3e3ad35391a |
comparison
equal
deleted
inserted
replaced
1616:28411e97db94 | 1617:e0d8caffa209 |
---|---|
16 local rshift = bit.rshift; | 16 local rshift = bit.rshift; |
17 local lshift = bit.lshift; | 17 local lshift = bit.lshift; |
18 | 18 |
19 local byte = string.byte; | 19 local byte = string.byte; |
20 local c = string.char; | 20 local c = string.char; |
21 | |
22 module:depends("s2s"); | |
21 | 23 |
22 local proxy_ip = module:get_option("onions_socks5_host") or "127.0.0.1"; | 24 local proxy_ip = module:get_option("onions_socks5_host") or "127.0.0.1"; |
23 local proxy_port = module:get_option("onions_socks5_port") or 9050; | 25 local proxy_port = module:get_option("onions_socks5_port") or 9050; |
24 local forbid_else = module:get_option("onions_only") or false; | 26 local forbid_else = module:get_option("onions_only") or false; |
25 local torify_all = module:get_option("onions_tor_all") or false; | 27 local torify_all = module:get_option("onions_tor_all") or false; |