Sort routes
This commit is contained in:
parent
24ca9d59f6
commit
4b28db6a13
|
@ -118,8 +118,8 @@ def user(userName):
|
|||
def routes():
|
||||
routes = Route().list()
|
||||
|
||||
prefixes = set(
|
||||
(r.prefix for r in routes.routes if not r.prefix.endswith('/0')))
|
||||
prefixes = sorted(set(
|
||||
(r.prefix for r in routes.routes if not r.prefix.endswith('/0'))))
|
||||
|
||||
exitNodes = [r.node for r in routes.routes if r.prefix.endswith(
|
||||
'0/0') and r.enabled]
|
||||
|
|
Loading…
Reference in New Issue