From e017e55a7bb9d6c0dda0ac2009aa18cc83a03431 Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Mon, 24 Jul 2023 15:34:24 -0700 Subject: [PATCH] torproxy: Drop irrelavant 'ExitPolicy' configuration directive ExitPolicy is only used when relaying is enabled as per torrc manual page. Tests: - None Signed-off-by: Sunil Mohan Adapa Reviewed-by: James Valleroy --- plinth/modules/torproxy/privileged.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/plinth/modules/torproxy/privileged.py b/plinth/modules/torproxy/privileged.py index 5a78c7325..57216af9d 100644 --- a/plinth/modules/torproxy/privileged.py +++ b/plinth/modules/torproxy/privileged.py @@ -52,8 +52,6 @@ def _first_time_setup(): aug.set(TORPROXY_CONFIG_AUG + '/SocksPort[1]', '[::]:9050') aug.set(TORPROXY_CONFIG_AUG + '/SocksPort[2]', '0.0.0.0:9050') - aug.set(TORPROXY_CONFIG_AUG + '/ExitPolicy[1]', 'reject *:*') - aug.set(TORPROXY_CONFIG_AUG + '/ExitPolicy[2]', 'reject6 *:*') aug.set(TORPROXY_CONFIG_AUG + '/VirtualAddrNetworkIPv4', '10.192.0.0/10') aug.set(TORPROXY_CONFIG_AUG + '/AutomapHostsOnResolve', '1') aug.set(TORPROXY_CONFIG_AUG + '/TransPort[1]', '127.0.0.1:9040')