mirror of
https://github.com/NeoCloud/NeoNetwork
synced 2024-11-22 06:50:41 +08:00
[skip ci] skip all loopback checks
This commit is contained in:
parent
a35b5b2bab
commit
3af70f3627
1 changed files with 2 additions and 0 deletions
|
@ -120,6 +120,8 @@ def route_to_roa(asn_table: dict):
|
|||
for net1, net2 in combinations(
|
||||
sorted(entities, key=lambda net: net["prefix"].prefixlen), 2
|
||||
):
|
||||
if net1["type"] == net2["type"] == "loopback":
|
||||
continue
|
||||
if not net1["prefix"].overlaps(net2["prefix"]):
|
||||
continue
|
||||
entity_from_net = lambda net: asn_table.get(net["asn"])["owner"]
|
||||
|
|
Loading…
Reference in a new issue