Files
whitelist-bypass/relay/wintunnel/exec_windows.go
T
kulikov0 30ed29a161 Joiner desktop windows (#89)
* base classes/logic from a playground

* fix sandbox

* add vk support
2026-05-11 17:01:32 +02:00

18 lines
362 B
Go

//go:build windows
package wintunnel
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
}
}