Rename networks.json to ipsets.json

Getting ready for some changes.
This commit is contained in:
Timotej Lazar 2023-07-06 16:28:15 +02:00
parent 1ff6c9d0d3
commit 8b8c675759
2 changed files with 2 additions and 2 deletions

View file

@ -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', ()))

View file

@ -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