From b079790183a7e40ab49a6efdf825c490fdbaa60a Mon Sep 17 00:00:00 2001 From: Vegard Engen Date: Sun, 13 Apr 2025 15:26:35 +0200 Subject: [PATCH] reverse test --- unifi/unifi.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unifi/unifi.go b/unifi/unifi.go index 043781f..deb8f72 100644 --- a/unifi/unifi.go +++ b/unifi/unifi.go @@ -212,7 +212,7 @@ func (c *Client) do(ctx context.Context, method, relativeURL string, reqBody int if err != nil { return fmt.Errorf("unable to parse URL: %s %s %w", method, relativeURL, err) } - if !strings.Contains(relativeURL, "firewall/zone") { + if strings.Contains(relativeURL, "firewall/zone") { c.apiPath = c.apiV2Path } if !strings.HasPrefix(relativeURL, "/") && !reqURL.IsAbs() {