Changeset 10367 in genesis


Ignore:
Timestamp:
Apr 7, 2012, 10:13:29 AM (13 years ago)
Author:
rick
Message:

Listing of both normal and ieldien proxies, as discussed at techniek@

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/gformat.py

    r10366 r10367  
    337337
    338338  ileiden_proxies = []
     339  normal_proxies = []
    339340  for proxy in get_proxylist():
    340341    proxydump = get_yaml(proxy)
    341342    if proxydump['ileiden']:
    342343      ileiden_proxies.append(proxydump)
     344    else:
     345      normal_proxies.append(proxydump)
    343346  datadump['autogen_ileiden_proxies'] = ','.join([x['masterip'] for x in ileiden_proxies])
    344347  datadump['autogen_ileiden_proxies_names'] = ','.join([x['autogen_item'] for x in ileiden_proxies])
     348  datadump['autogen_normal_proxies'] = ','.join([x['masterip'] for x in normal_proxies])
     349  datadump['autogen_normal_proxies_names'] = ','.join([x['autogen_item'] for x in normal_proxies])
    345350
    346351  output = generate_header("#");
     
    393398#
    394399# iLeiden Proxies {{ autogen_ileiden_proxies_names }}
    395 lvrouted_flags="-u -s s00p3rs3kr3t -m 28 -z {{ autogen_ileiden_proxies }}"
     400list_ileiden_proxies="{{ autogen_ileiden_proxies }}"
     401# normal Proxies {{ autogen_normal_proxies_names }}
     402list_normal_proxies="{{ autogen_normal_proxies }}"
     403
     404lvrouted_flags="-u -s s00p3rs3kr3t -m 28 -z $list_ileiden_proxies"
    396405{% endif %}
    397406{% if vpnif -%}
Note: See TracChangeset for help on using the changeset viewer.