mirror of
https://github.com/amnezia-vpn/euphoria-windows.git
synced 2026-05-17 08:15:59 +03:00
Merge pull request #7 from RomikB/update_admin_reg_key
Update admin reg key
This commit is contained in:
@@ -7,7 +7,7 @@ package conf
|
||||
|
||||
import "golang.org/x/sys/windows/registry"
|
||||
|
||||
const adminRegKey = `Software\WireGuard`
|
||||
const adminRegKey = `Software\AmneziaWG`
|
||||
|
||||
var adminKey registry.Key
|
||||
|
||||
|
||||
@@ -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