Rename networks.json to ipsets.json
Getting ready for some changes.
This commit is contained in:
parent
1ff6c9d0d3
commit
8b8c675759
2 changed files with 2 additions and 2 deletions
|
@ -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', ()))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue