You've already forked haproxy-wi
mirror of
https://github.com/roxy-wi/roxy-wi.git
synced 2025-12-18 12:04:07 +08:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user