Skip to content

Commit

Permalink
Fix sudo passing environment for firewall mode (#34)
Browse files Browse the repository at this point in the history
* src/tailscale: pass firewall mode through sudo

* src/tailscale: bump to 1.0.6 for sudo env fix
  • Loading branch information
raggi authored Mar 8, 2024
1 parent 8a5bbf2 commit 0ede9e3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/tailscale/devcontainer-feature.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "Tailscale",
"id": "tailscale",
"version": "1.0.5",
"version": "1.0.6",
"description": "Connect to your tailnet in your development container",
"documentationURL": "https://tailscale.com/kb/1160/github-codespaces/",
"licenseURL": "https://github.com/tailscale/codespace/blob/main/LICENSE",
Expand Down
2 changes: 1 addition & 1 deletion src/tailscale/tailscaled-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ if [[ "$(id -u)" -eq 0 ]]; then
elif command -v sudo > /dev/null; then
sudo --non-interactive mkdir -p /workspaces/.tailscale
2>/dev/null >/dev/null \
sudo --non-interactive \
sudo --non-interactive "TS_DEBUG_FIREWALL_MODE=$TS_DEBUG_FIREWALL_MODE" \
/usr/local/sbin/tailscaled \
--statedir=/workspaces/.tailscale/ \
--socket=/var/run/tailscale/tailscaled.sock \
Expand Down

0 comments on commit 0ede9e3

Please sign in to comment.