You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Recent macOS versions require user permissions to use local network
access. This can only be granted for binaries which have a LC_UUID load
command. Go 1.24 adds the UUID by default, but the fix was backported to
Go 1.22.9 and 1.23 where it requires passing `-B gobuildid` to the linker.
Cloudflared uses Cloudflare's Go fork which is based on Go 1.22.5 which
doesn't have the backport. Because of this, cloudflare can't talk to any
machine on the local network (`no route to host`) when it's runnning as
a non-root user.
Upstream bug: cloudflare/cloudflared#1460
This workaround updates the Go fork to `go1.22.12-devel-cf` and adds `-B
gobuildid` so that the binary now has a UUID:
```
❯ dwarfdump --uuid /opt/homebrew/bin/cloudflared
UUID: F2088E17-03A1-34B1-F12C-0DF01F00BA32 (arm64) /opt/homebrew/bin/cloudflared
```
0 commit comments