From 281c7c9a19dc4bf1a2a2aad332f49f597b093f37 Mon Sep 17 00:00:00 2001 From: EduBox Dev Date: Tue, 23 Jun 2026 18:36:14 +0000 Subject: [PATCH] fix(agent/windows): add --unattended to tailscale up On Windows tailscaled stops the backend when the CLI client disconnects. --unattended keeps the VPN session alive so the agent can report its IP and the server can reach the node. Bump to v0.3.3. --- agent/build.sh | 2 +- agent/tailscale.go | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/agent/build.sh b/agent/build.sh index bb7ed08..5b63053 100755 --- a/agent/build.sh +++ b/agent/build.sh @@ -1,7 +1,7 @@ #!/bin/bash set -e -VERSION="0.3.2" +VERSION="0.3.3" APP_NAME="studioE5" BIN_NAME="studioE5-agent" LDFLAGS="-X main.version=${VERSION}" diff --git a/agent/tailscale.go b/agent/tailscale.go index ff063d8..d7eaca7 100644 --- a/agent/tailscale.go +++ b/agent/tailscale.go @@ -104,7 +104,10 @@ func startTailscale(dataDir, nodeID, headscaleURL, authKey string) (string, erro "--hostname=" + nodeID, "--accept-dns=false", } - if runtime.GOOS != "windows" { + if runtime.GOOS == "windows" { + // On Windows, keep the VPN up even after the tailscale.exe CLI client disconnects. + upArgs = append(upArgs, "--unattended") + } else { // --operator is only meaningful on Unix systems. upArgs = append(upArgs, "--operator=root") }