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