mirror of
https://github.com/swissmakers/fail2ban-ui.git
synced 2026-04-11 13:47:05 +02:00
dynamically include curl option to when self-signed https certificates are used
This commit is contained in:
@@ -1839,6 +1839,15 @@ func UpdateSettingsHandler(c *gin.Context) {
|
||||
config.DebugLog("Warning: failed to update some remote action files: %v", err)
|
||||
// Don't fail the request, just log the warning
|
||||
}
|
||||
// Also update local action file if callback URL changed
|
||||
settings := config.GetSettings()
|
||||
for _, server := range settings.Servers {
|
||||
if server.Type == "local" && server.Enabled {
|
||||
if err := config.EnsureLocalFail2banAction(server); err != nil {
|
||||
config.DebugLog("Warning: failed to update local action file: %v", err)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Check if Fail2Ban DEFAULT settings changed and push to all enabled servers
|
||||
|
||||
Reference in New Issue
Block a user