mirror of
https://github.com/NeoCloud/NeoNetwork
synced 2024-12-25 13:49:23 +08:00
maybe we should not allow empty netname
This commit is contained in:
parent
0c3d4bf9a8
commit
cbc0f4ceea
1 changed files with 1 additions and 0 deletions
|
@ -133,6 +133,7 @@ def neonet_route2roa(dirname, is_ipv6=False):
|
|||
route = f.name.replace(',', '/')
|
||||
supernet = get_supernet(fc.get('supernet'))
|
||||
netname = fc.get('name')
|
||||
assert netname
|
||||
roa_entries.append(dict(zip(roa_entries_key, [asn, nettype(route, strict=True), supernet, netname])))
|
||||
elif fc.get('type').lower().startswith('tun'):
|
||||
assert NODE_TABLE[fc.get('downstream')] # extra check for downstream
|
||||
|
|
Loading…
Reference in a new issue