dynamically include curl option to when self-signed https certificates are used

This commit is contained in:
2025-12-30 15:55:57 +01:00
parent 7525f38e25
commit ad12bc0db9
2 changed files with 21 additions and 2 deletions

View File

@@ -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