Skip to content

Commit 051b2cf

Browse files
committed
TUN-5678: Cloudflared uses typed tunnel API
1 parent 4cf462e commit 051b2cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cfapi/base_client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ func NewRESTClient(baseURL, accountTag, zoneTag, authToken, userAgent string, lo
4848
if strings.HasSuffix(baseURL, "/") {
4949
baseURL = baseURL[:len(baseURL)-1]
5050
}
51-
accountLevelEndpoint, err := url.Parse(fmt.Sprintf("%s/accounts/%s/tunnels", baseURL, accountTag))
51+
accountLevelEndpoint, err := url.Parse(fmt.Sprintf("%s/accounts/%s/cfd_tunnel", baseURL, accountTag))
5252
if err != nil {
5353
return nil, errors.Wrap(err, "failed to create account level endpoint")
5454
}

0 commit comments

Comments
 (0)