Commit Graph

10 Commits

Author SHA1 Message Date
Bohdan Chubuk
137a710fc2 cloudflared: fix duplicate "run" command argument
The init script was appending the 'run' subcommand twice. The first
instance was misplaced, causing a command syntax error by placing 'run'
before other tunnel options, which breaks the service.

This patch removes the first, incorrect 'run' argument, leaving the
second one in the correct position after all options have been set.

This fixes a regression introduced in pull request #27786.

Ref: https://github.com/openwrt/packages/pull/27786
Signed-off-by: Bohdan Chubuk <chbgdn@gmail.com>
2025-11-10 20:06:34 +08:00
Akihiro Nagai
38da2ccc4d cloudflared: fix argument order for tunnel command
Move all global options (--protocol, --loglevel, --logfile, --config,
--origincert, etc.) before the 'run' subcommand, and keep --token
after it to match the correct cloudflared CLI syntax.

Signed-off-by: Akihiro Nagai <bashing.tremors_0f@icloud.com>
2025-11-08 02:30:51 +08:00
Akihiro Nagai
b68f1c8c04 cloudflared: improve init script for tunnel management
Resolved conflict between remotely-managed tunnel and locally-managed
tunnel configurations.

- Bumped PKG_RELEASE to 2
- Commented out 'config' and 'origincert' options in default
  configuration file
- Preserved options as comments for user reference

Signed-off-by: Akihiro Nagai <bashing.tremors_0f@icloud.com>
2025-11-06 02:11:02 +02:00
Tianling Shen
66906b8677 cloudflared: Update to 2025.2.0
Remove unneeded reload_service func while at it.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2025-02-18 19:55:55 +08:00
Tianling Shen
52037eb625 cloudflared: reload service if wan inferface has (re)connected
Sometimes the wan connection needs time to be established (e.g. cold
boot after power loss) and the service may crash as the internet is
yet available. Add a trigger to reload the service once the wan
interface is up.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-09-02 13:19:16 +08:00
Ryan Keane
2d711c8fbd cloudflared: Fix incorrect uci config syntax
Fix incorrect uci config syntax, caused by a careless newbie contributer.
Modify function append_param_arg() in init script, to support hyphenated
arguments.
Add more command parameters as uci options, no value is set to keep it default.

Signed-off-by: Ryan Keane <the.ra2.ifv@gmail.com>
2024-06-24 15:35:56 +08:00
Ryan Keane
31c91837f9 cloudflared: Add more run parameters in UCI
https://developers.cloudflare.com/cloudflare-one/connections/connect-networks/configure-tunnels/tunnel-run-parameters/

Close #24122

Signed-off-by: Ryan Keane <the.ra2.ifv@gmail.com>
2024-06-20 04:26:30 +08:00
Scott McKenzie
61106a8df2 cloudflared: support setting tunnel token
Allows user to provide a token for Cloudflare tunnel.
When provided along with credentials, this will take precedence.

Signed-off-by: Scott McKenzie <scott@noizyland.net>
2023-05-20 13:04:04 +08:00
Tianling Shen
b1651c5d54 treewide: fix procd service inactive
Exit directly will result procd service inactive and uci
configuration changes are no longer monitored.

Reported-by: Lvc Revincx <revincx233@gmail.com>
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2022-10-18 07:22:43 -07:00
Tianling Shen
35c109c7ff cloudflared: add new package
Contains the command-line client for Cloudflare Tunnel, a tunneling
daemon that proxies traffic from the Cloudflare network to your origins.

Docs: https://developers.cloudflare.com/cloudflare-one/connections/connect-apps/install-and-setup/tunnel-guide

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2022-03-16 19:46:07 -07:00