mirror of
https://github.com/amnezia-vpn/euphoria-windows.git
synced 2026-05-17 00:05:59 +03:00
Revert naming
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
@@ -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),
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user