From b82a881f09c7315c5e7bb5cbe662b655173f2f0f Mon Sep 17 00:00:00 2001 From: Allen Ding Date: Fri, 26 Mar 2021 17:00:27 +0800 Subject: [PATCH] Fix macOS service installation launch template The current version of cloudflared (2021.3.2 at time of commit) requires additional arguments to start a tunnel. Running 'cloudflared' on its own does not run a tunnel with the default configuration. This is behavior that has changed from previous versions of cloudflared, where no arguments were required for starting/running a tunnel with the default configuration behavior. --- cmd/cloudflared/macos_service.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/cloudflared/macos_service.go b/cmd/cloudflared/macos_service.go index f28396c6..27bd4ee2 100644 --- a/cmd/cloudflared/macos_service.go +++ b/cmd/cloudflared/macos_service.go @@ -49,6 +49,8 @@ func newLaunchdTemplate(installPath, stdoutPath, stderrPath string) *ServiceTemp ProgramArguments {{ .Path }} + tunnel + run RunAtLoad