macos build, linux tun hack

This commit is contained in:
kulikov0 committed 2026-05-11 20:15:56 +02:00
1 parent 9639defdd4
commit 76ab72db2e
18 files changed
+719 -64

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
//go:build windows
package desktoptun
import (
"os/exec"
"syscall"
)
// hideConsole sets CREATE_NO_WINDOW so netsh/route/powershell helpers
// do not flash a cmd window when the joiner runs under Electron.
func hideConsole(cmd *exec.Cmd) {
cmd.SysProcAttr = &syscall.SysProcAttr{
HideWindow: true,
CreationFlags: 0x08000000, // CREATE_NO_WINDOW
}
}