mirror of
https://github.com/amnezia-vpn/euphoria-windows.git
synced 2026-05-17 08:15:59 +03:00
update enviroment variable
This commit is contained in:
@@ -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(), "WIREGUARD_TUNNEL_NAME="+interfaceName),
|
||||
Env: append(os.Environ(), "AMNEZIAWG_TUNNEL_NAME="+interfaceName),
|
||||
Sys: &syscall.SysProcAttr{
|
||||
HideWindow: true,
|
||||
CmdLine: fmt.Sprintf("cmd /c %s", command),
|
||||
|
||||
@@ -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(), "WIREGUARD_TUNNEL_NAME="+interfaceName),
|
||||
Env: append(os.Environ(), "AMNEZIAWG_TUNNEL_NAME="+interfaceName),
|
||||
Sys: &syscall.SysProcAttr{
|
||||
HideWindow: true,
|
||||
CmdLine: fmt.Sprintf("cmd /c %s", command),
|
||||
|
||||
Reference in New Issue
Block a user