Files
openclaw/src/infra
google-labs-jules[bot] 66f353fe7a feat: use sudo for tailscale configuration commands
To avoid permission denied errors when modifying Tailscale configuration (serve/funnel),
we now prepend `sudo -n` to these commands. This ensures that if the user has appropriate
sudo privileges (specifically passwordless for these commands or generally), the operation
succeeds. If sudo fails (e.g. requires password non-interactively), it will throw an error
which is caught and logged as a warning, preserving existing behavior but attempting to escalate privileges first.

- Updated `ensureFunnel` to use `sudo -n` for the enabling step.
- Updated `enableTailscaleServe`, `disableTailscaleServe`, `enableTailscaleFunnel`, `disableTailscaleFunnel` to use `sudo -n`.
- Added tests in `src/infra/tailscale.test.ts` to verify `sudo` usage.
2026-01-24 00:17:20 +00:00
..
2026-01-17 08:00:05 +00:00
2026-01-20 16:02:46 +00:00
2026-01-14 15:02:19 +00:00
…
…
2026-01-21 01:58:47 +00:00
2026-01-17 12:30:11 +00:00
2026-01-14 15:02:19 +00:00
2026-01-18 05:44:22 +00:00
2026-01-18 08:45:29 +00:00
2026-01-14 15:02:19 +00:00
2026-01-14 15:02:19 +00:00
2026-01-16 07:33:15 +00:00
2026-01-19 05:59:29 +00:00
…
2026-01-17 18:32:23 +00:00