% # Note that this file is not a valid *.html file! # It is intended to be a bottlepy - style template # used for the scripting part of TheOnionBox! tor = get('tor') if tor is None else tor hs_configs = tor.get_hidden_service_conf(None) # print(hs_configs) # print(tor.get_info('config/names')) hs_conf_params = [ 'HiddenServiceDir', 'HiddenServicePort', 'HiddenServiceVersion', 'HiddenServiceAuthorizeClient', 'HiddenServiceAllowUnknownPorts', 'HiddenServiceMaxStreams', 'HiddenServiceMaxStreamsCloseCircuit', 'HiddenServiceDirGroupReadable', 'HiddenServiceNumIntroductionPoints' ] %> % if hs_configs is not None and len(hs_configs) > 0: {{!header_row('Tor', 'Hidden Services', 'hiddenservice')}} % for hs_dir in hs_configs: % hs_conf = hs_configs[hs_dir] {{!group_row('Hidden Service Options')}}