Fixed the 'Manually Block / Test' endpoint returning a 500 error. The handler didn't validate the integration configuration before attempting the test.

This commit is contained in:
2026-01-14 16:37:11 +01:00
parent 98c6d40be0
commit 4abc22d6fe
4 changed files with 24 additions and 3 deletions

View File

@@ -71,7 +71,7 @@ func (p *pfSenseIntegration) callAPI(req Request, action string, payload map[str
return fmt.Errorf("failed to encode pfSense payload: %w", err)
}
apiURL := strings.TrimSuffix(cfg.BaseURL, "/") + "/api/v1/firewall/alias/ip"
apiURL := strings.TrimSuffix(cfg.BaseURL, "/") + "/api/v2/firewall/alias/ip"
httpClient := &http.Client{
Timeout: 10 * time.Second,