This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
@@ -60,6 +60,8 @@ class options(object):
pid_filename=None
safe_logging=True
address_family=socket.AF_UNSPEC
# We accept up to this many bytes from a socket not yet matched with a partner
# before disconnecting it.
UNCONNECTED_BUFFER_LIMIT=10240
@@ -90,6 +92,8 @@ connect to you. You need to register in some way in order to get any service.
The --facilitator option allows controlling which facilitator is used; if
omitted, it uses a public default.
-4 name lookups use only IPv4.
-6 name lookups use only IPv6.
--daemon daemonize (Unix only).
--external be an external proxy (don't interact with Tor using
environment variables and stdout).
@@ -939,14 +943,24 @@ def proxy_loop():
defbuild_register_command(method):
# sys.path[0] is initialized to the directory containing the Python script file.
argument=None
ifoptions.address_family==socket.AF_INET:
argument='-4'
elifoptions.address_family==socket.AF_INET6:
argument='-6'
script_dir=sys.path[0]
ifnotscript_dir:
# Maybe the script was read from stdin; in any case don't guess at the directory.
raiseValueError("Can't find executable directory for registration helpers")