Merge pull request #4 from amnezia-vpn/bugfix/revert-name-change-2

revert missing name
This commit is contained in:
Mark Puha
2025-02-25 07:45:45 +01:00
committed by GitHub

View File

@@ -47,7 +47,7 @@ func runScriptCommand(command, interfaceName string) error {
}
process, err := os.StartProcess(comspec, nil /* CmdLine below */, &os.ProcAttr{
Files: []*os.File{devNull, writer, writer},
Env: append(os.Environ(), "EUPHORIA_TUNNEL_NAME="+interfaceName),
Env: append(os.Environ(), "AMNEZIAWG_TUNNEL_NAME="+interfaceName),
Sys: &syscall.SysProcAttr{
HideWindow: true,
CmdLine: fmt.Sprintf("cmd /c %s", command),