# See https://www.torproject.org/docs/tor-manual.html

ClientOnly 1
ExitPolicy reject *:*

# Port numbers (SocksPort, ControlPort) are randomly generated in TorController.
# TorWrapper picks these up and executes tor with these as command-line args.
# See TorController.m:31-32 and TorWrapper.m (main).
SocksListenAddress 127.0.0.1
ControlListenAddress 127.0.0.1

CookieAuthentication 1

ConnLimit 100

SafeLogging 1

TestSocks 0
WarnUnsafeSocks 0 # default 1 (we don't care on iOS)

# We actually disabled this by removing ptrace() calls when building tor.
# See "build-tor-ptrace-patch.diff" and "build-tor.sh" in the OnionBrowser
# repo root. This technically results in "less security", but iOS
# restrictions do not allow ptrace() calls. See README.
DisableDebuggerAttachment 0

# "UseBridges" and "bridge" lines get appended automatically if there
# are bridges enabled in settings.
