Revert naming

This commit is contained in:
Mykola Baibuz
2025-02-24 21:20:02 +02:00
parent 03ceabc62d
commit e948a6592a
4 changed files with 5 additions and 5 deletions

View File

@@ -7,7 +7,7 @@ package conf
import "golang.org/x/sys/windows/registry"
const adminRegKey = `Software\Euphoria`
const adminRegKey = `Software\AmneziaWG`
var adminKey registry.Key

View File

@@ -50,7 +50,7 @@ func RootDirectory(create bool) (string, error) {
if err != nil {
return "", err
}
root = filepath.Join(root, "Euphoria")
root = filepath.Join(root, "AmneziaWG")
if !create {
return filepath.Join(root, "Data"), nil
}

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),

View File

@@ -15,12 +15,12 @@ func ServiceNameOfTunnel(tunnelName string) (string, error) {
if !conf.TunnelNameIsValid(tunnelName) {
return "", errors.New("Tunnel name is not valid")
}
return "EuphoriaTunnel$" + tunnelName, nil
return "AmneziaWGTunnel$" + tunnelName, nil
}
func PipePathOfTunnel(tunnelName string) (string, error) {
if !conf.TunnelNameIsValid(tunnelName) {
return "", errors.New("Tunnel name is not valid")
}
return `\\.\pipe\ProtectedPrefix\Administrators\Euphoria\` + tunnelName, nil
return `\\.\pipe\ProtectedPrefix\Administrators\AmneziaWG\` + tunnelName, nil
}