def __init__(self, debug=False, local_only=False, stay_open=False, transparent_torification=False): self.port = None self.hs = None self.hidserv_dir = None self.onion_host = None # files and dirs to delete on shutdown self.cleanup_filenames = [] # debug mode if debug: web.debug_mode() # do not use tor -- for development self.local_only = local_only # automatically close when download is finished self.stay_open = stay_open # traffic automatically goes through Tor self.transparent_torification = transparent_torification
def __init__(self, debug=False, local_only=False, stay_open=False): self.port = None # debug mode if debug: web.debug_mode() # do not use tor -- for development self.local_only = local_only # automatically close when download is finished self.stay_open = stay_open # files and dirs to delete on shutdown self.cleanup_filenames = []