TUN-5678: Adapt cloudflared to use new typed APIs

This commit is contained in:
João Oliveirinha 2022-02-14 14:06:29 +00:00 committed by Areg Harutyunyan
parent d68ff390ca
commit 630650b90e
No known key found for this signature in database
GPG Key ID: 97A3DFFE8E9320B7
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ func NewRESTClient(baseURL, accountTag, zoneTag, authToken, userAgent string, lo
if strings.HasSuffix(baseURL, "/") {
baseURL = baseURL[:len(baseURL)-1]
}
accountLevelEndpoint, err := url.Parse(fmt.Sprintf("%s/accounts/%s/tunnels", baseURL, accountTag))
accountLevelEndpoint, err := url.Parse(fmt.Sprintf("%s/accounts/%s/cfd_tunnel", baseURL, accountTag))
if err != nil {
return nil, errors.Wrap(err, "failed to create account level endpoint")
}