Compare commits

...

2 Commits

Author SHA1 Message Date
c52743effa Merge branch '2-create-firewall-zone-api' 2025-04-13 15:26:49 +02:00
b079790183 reverse test 2025-04-13 15:26:35 +02:00

View File

@@ -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() {