mirror of
https://github.com/iFargle/headscale-webui.git
synced 2026-03-20 02:05:28 +01:00
exit route debug
This commit is contained in:
@@ -277,13 +277,14 @@ def thread_machine_content(machine, machine_content, idx, all_routes):
|
||||
for route in pulled_routes["routes"]:
|
||||
if route["prefix"] == "0.0.0.0/0" or route["prefix"] == "::/0":
|
||||
exit_routes.append(route["id"])
|
||||
app.logger.debug("Found exit route ID's: "+str(exit_routes))
|
||||
exit_route_found = True
|
||||
# Test if it is enabled:
|
||||
if route["enabled"]:
|
||||
exit_enabled_color = "green"
|
||||
exit_tooltip = 'disable'
|
||||
exit_route_enabled = True
|
||||
app.logger.debug("Found exit route ID's: "+str(exit_routes))
|
||||
app.logger.debug("Exit Route Information: ID: %s | Enabled: %s | exit_route_enabled: %s / Found: %s", str(route["id"]), str(route["enabled"], str(exit_route_enabled)), str(exit_route_found))
|
||||
|
||||
# Print the button for the Exit routes:
|
||||
if exit_route_found:
|
||||
|
||||
Reference in New Issue
Block a user