Merge pull request #3168 from AyoubAchour/fix/cloudflared-download-link

fix(tunnels): update cloudflared download link
This commit is contained in:
Bohdan Triapitsyn
2026-08-27 23:13:17 +03:00
committed by GitHub
5 changed files with 15 additions and 4 deletions
@@ -205,7 +205,7 @@ const getFallbackInstallCommand = (provider: string, platform = getClientInstall
if (platform === 'darwin') {
return 'brew install cloudflared';
}
return 'https://developers.cloudflare.com/cloudflare-one/networks/connectors/cloudflared/downloads/';
return 'https://developers.cloudflare.com/cloudflare-one/networks/connectors/cloudflare-tunnel/downloads/';
};
const createTunnelDependencyInstallInfo = (provider: string, checkData?: TunnelCheckResponse): TunnelDependencyInstallInfo => {
+1 -1
View File
@@ -64,7 +64,7 @@ Install instructions for your platform:
Windows: winget install --id Cloudflare.cloudflared
Linux: Download from https://github.com/cloudflare/cloudflared/releases
Or visit: https://developers.cloudflare.com/cloudflare-one/networks/connectors/cloudflared/downloads/
Or visit: https://developers.cloudflare.com/cloudflare-one/networks/connectors/cloudflare-tunnel/downloads/
`);
}
@@ -6,11 +6,11 @@ import {
const PROVIDER_INSTALL_INFO = {
[TUNNEL_PROVIDER_CLOUDFLARE]: {
dependency: 'cloudflared',
installUrl: 'https://developers.cloudflare.com/cloudflare-one/networks/connectors/cloudflared/downloads/',
installUrl: 'https://developers.cloudflare.com/cloudflare-one/networks/connectors/cloudflare-tunnel/downloads/',
commands: {
darwin: 'brew install cloudflared',
win32: 'winget install --id Cloudflare.cloudflared',
linux: 'Download cloudflared from https://developers.cloudflare.com/cloudflare-one/networks/connectors/cloudflared/downloads/',
linux: 'Download cloudflared from https://developers.cloudflare.com/cloudflare-one/networks/connectors/cloudflare-tunnel/downloads/',
},
},
[TUNNEL_PROVIDER_NGROK]: {
@@ -28,4 +28,13 @@ describe('getTunnelDependencyInstallInfo', () => {
expect(info.installCommand).toBe('brew install cloudflared');
});
it('returns the current Linux cloudflared download guidance', () => {
const info = getTunnelDependencyInstallInfo(TUNNEL_PROVIDER_CLOUDFLARE, 'linux');
const downloadUrl = 'https://developers.cloudflare.com/cloudflare-one/networks/connectors/cloudflare-tunnel/downloads/';
expect(info.installUrl).toBe(downloadUrl);
expect(info.installCommand).toBe(`Download cloudflared from ${downloadUrl}`);
expect(info.message).toContain(downloadUrl);
});
});