rework the reload function. we must change that to restart, because fail2ban does not apply all changes on reload only

This commit is contained in:
2025-02-26 17:44:13 +01:00
parent 25238bf83c
commit 2be263a4ff
10 changed files with 61 additions and 61 deletions

View File

@@ -54,8 +54,8 @@ func RegisterRoutes(r *gin.Engine) {
// TODO: create or generate new filters
// api.POST("/filters/generate", GenerateFilterHandler)
// Reload endpoint
api.POST("/fail2ban/reload", ReloadFail2banHandler)
// Restart endpoint
api.POST("/fail2ban/restart", RestartFail2banHandler)
// Handle Fail2Ban notifications
api.POST("/ban", BanNotificationHandler)