Conform tor setup to the restrictions for incoming and outgoing connections
This commit is contained in:
parent
c7a9f853c7
commit
0fb4056eb1
|
@ -267,7 +267,7 @@ def main():
|
|||
'Error while creating data directory in: %s',
|
||||
shared.data_directory, exc_info=True)
|
||||
|
||||
if shared.socks_proxy:
|
||||
if shared.socks_proxy and shared.send_outgoing_connections:
|
||||
try:
|
||||
socks.PROXY_TYPES[shared.socks_proxy.scheme.upper()]
|
||||
except KeyError:
|
||||
|
|
|
@ -75,6 +75,9 @@ def start_tor_service():
|
|||
logging.debug('Failed to start tor.')
|
||||
return
|
||||
|
||||
if not shared.listen_for_connections:
|
||||
return True
|
||||
|
||||
try:
|
||||
controller = stem.control.Controller.from_socket_file(control_socket)
|
||||
controller.authenticate()
|
||||
|
|
Loading…
Reference in New Issue
Block a user