v8.1.6: Add UDP listener checker functionality

Introduces the ability to enable or disable a checker service for UDP listeners. Includes UI updates, database migration, new API route, and backend logic to handle checker settings on UDP listeners.
This commit is contained in:
Aidaho
2025-02-19 10:49:07 +03:00
parent fc0ccb8f9c
commit f3f540c291
11 changed files with 113 additions and 5 deletions

View File

@@ -1,4 +1,4 @@
from app.modules.db.db_model import CheckerSetting, Server, ServiceStatus
from app.modules.db.db_model import CheckerSetting, Server, ServiceStatus, UDPBalancer
from app.modules.db.common import out_error
@@ -146,3 +146,10 @@ def select_all_alerts(group_id: int):
return query.execute()
except Exception as e:
out_error(e)
def select_checker_udp_enabled():
try:
return UDPBalancer.select().where(UDPBalancer.is_checker == 1)
except Exception as e:
out_error(e)