mirror of
https://github.com/swissmakers/fail2ban-ui.git
synced 2026-04-11 13:47:05 +02:00
Implementing WebSocked Support for immediately ban-messages
This commit is contained in:
@@ -73,8 +73,12 @@ func main() {
|
||||
router.Static("/static", "./pkg/web/static")
|
||||
}
|
||||
|
||||
// Initialize WebSocket hub
|
||||
wsHub := web.NewHub()
|
||||
go wsHub.Run()
|
||||
|
||||
// Register all application routes, including the static files and templates.
|
||||
web.RegisterRoutes(router)
|
||||
web.RegisterRoutes(router, wsHub)
|
||||
|
||||
// Check if LOTR mode is active
|
||||
isLOTRMode := isLOTRModeActive(settings.AlertCountries)
|
||||
|
||||
Reference in New Issue
Block a user