From facf99b763703b445104beca01375a6472a5286e Mon Sep 17 00:00:00 2001 From: Paul Wise Date: Tue, 25 Sep 2018 10:27:04 +0800 Subject: [PATCH] Add workaround for new Tor configuration requirement See-also: https://trac.torproject.org/projects/tor/ticket/27849 --- modules/onion/templates/torrc-header.erb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/onion/templates/torrc-header.erb b/modules/onion/templates/torrc-header.erb index b45b81d96..57568154a 100644 --- a/modules/onion/templates/torrc-header.erb +++ b/modules/onion/templates/torrc-header.erb @@ -1,4 +1,10 @@ +<%- if scope.function_has_role(['onionbalance']) -%> +# Workaround https://trac.torproject.org/projects/tor/ticket/27849 +# FIXME: remove this when the bug is fixed +SocksPort 9050 +<%- else -%> SocksPort 0 +<%- end -%> Log notice syslog <%- if has_variable?("tor_ge_0_2_9") && @tor_ge_0_2_9 -%> -- 2.20.1