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.
This commit is contained in:
EduBox Dev
2026-06-23 18:36:14 +00:00
parent 3a3e3ed202
commit 281c7c9a19
2 changed files with 5 additions and 2 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
set -e set -e
VERSION="0.3.2" VERSION="0.3.3"
APP_NAME="studioE5" APP_NAME="studioE5"
BIN_NAME="studioE5-agent" BIN_NAME="studioE5-agent"
LDFLAGS="-X main.version=${VERSION}" LDFLAGS="-X main.version=${VERSION}"
+4 -1
View File
@@ -104,7 +104,10 @@ func startTailscale(dataDir, nodeID, headscaleURL, authKey string) (string, erro
"--hostname=" + nodeID, "--hostname=" + nodeID,
"--accept-dns=false", "--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. // --operator is only meaningful on Unix systems.
upArgs = append(upArgs, "--operator=root") upArgs = append(upArgs, "--operator=root")
} }