%# 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! {{!header_row('Tor', 'System Settings', 'tor')}}

Nickname

% nn = tor_info['tor/nickname'] % if nn=="Unnamed":

( {{nn}} )

% else:

{{nn}}

% end

Fingerprint

{{tor_info['tor/fingerprint']}}

Version

{{tor_info['tor/version']}} % tvc = tor_info['tor/version/current'] % if tvc in VERSION_STATUS_COLORS: {{tvc}} % end

% if tor_info['tor/orListenAddress']: {{!standard_row('Address', "{}:{}".format(tor_info['tor/orListenAddress'], tor_info['tor/orPort']))}} % else: {{!standard_row('Address', "{}:{}".format(tor_info['tor/address'], tor_info['tor/orPort']))}} % end % if tor_info['tor/dirPort'] != 0: {{!standard_row('DirPort', tor_info['tor/dirPort'])}} % end % if tor_info['tor/controlPort'] == "0": {{!standard_row('Control Socket', tor_info['tor/controlSocket'])}} % else:

Control Port

<% _cat_color = {"open": "black", "Password": "green", "Cookie": "blue"} _cat = "open" if tor_info['tor/isAuthPassword']: _cat = "Password" elif tor_info['tor/isAuthCookie']: _cat = "Cookie" end %> {{tor_info['tor/controlPort']}} {{_cat}}

% end

Flags

<% fs = '' for flag in tor_info['tor/flags']: if fs is not '': fs += ' ' end fs += '' + flag + '' end if (len(tor_info['tor/flags']) == 1) and (tor_info['tor/flags'][0] == 'none'): a_o = get('accounting_on') if a_o == True: a_s = get('accounting_stats') if a_s.status != 'awake': fs += ' | could be due to ' fs += 'Hibernation Status' fs += ' ' + a_s.status + '' end end end %> {{!fs}}

Exit Policy

<% _ep = "" for ep in tor_info['tor/exitPolicies']: if _ep is not '': _ep += ' | ' end _ep += ep end %> {{_ep}}