Rename networks.json to ipsets.json
Getting ready for some changes.
This commit is contained in:
parent
1ff6c9d0d3
commit
8b8c675759
|
@ -70,7 +70,7 @@ def save_config():
|
|||
|
||||
# Populate IP sets and translation maps for NAT.
|
||||
ipsets = collections.defaultdict(set)
|
||||
for name, network in db.read('networks').items():
|
||||
for name, network in db.read('ipsets').items():
|
||||
ipsets[name].update(network.get('ip', ()))
|
||||
ipsets[f'{name}/6'].update(network.get('ip6', ()))
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
<section>
|
||||
<dt><a href="{{ url_for('config.index') }}">Nastavitve</a>
|
||||
<dd>nastavitve aplikacije FRIwall
|
||||
<dt><a href="{{ url_for('config.edit', name='networks') }}">Omrežja</a>
|
||||
<dt><a href="{{ url_for('config.edit', name='ipsets') }}">Obsegi IP</a>
|
||||
<dd>definicije obsegov IP
|
||||
<dt><a href="{{ url_for('rules.index') }}">Urejanje pravil</a>
|
||||
<dd>pravila za posredovanje prometa
|
||||
|
|
Loading…
Reference in a new issue