Commit a912d782 authored by anonym's avatar anonym
Browse files

tor-controlport-filter: increase line read buffer size.

1024 bytes may be too little for someone pasting a huge list of
bridges (especially obfs4) into Tor Launcher (it combines them all to
a single SETCONF line).
parent 57f12371
......@@ -189,7 +189,7 @@ class FilteredControlPortProxySession:
# Limit the length of a line, to prevent DoS attacks trying to
# crash this filter proxy by sending infinitely long lines.
MAX_LINESIZE = 10*1024
def __init__(self, handler):
self.allowed_commands = handler.allowed_commands
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment