mirror of
https://github.com/iFargle/headscale-webui.git
synced 2025-12-16 02:55:05 +01:00
test
This commit is contained in:
@@ -302,7 +302,7 @@ def thread_machine_content(machine, machine_content, idx, all_routes):
|
||||
for route in pulled_routes["routes"]:
|
||||
# Check if the route has another enabled identical route. This means it's a Route Failover pair:
|
||||
for route_info in all_routes:
|
||||
if route_info["prefix"] == route["prefix"]:
|
||||
if str(route_info["prefix"]) == str(route["prefix"]):
|
||||
if route_info["id"] != route["id"]:
|
||||
app.logger.info("HA pair found: %s", str(route["prefix"]))
|
||||
failover_pair_prefixes = str(route["prefix"])
|
||||
|
||||
Reference in New Issue
Block a user