unsafe rebranding: change tunnel, pipe and folder names

This commit is contained in:
RomikB
2024-05-05 10:22:48 +02:00
committed by RomikB
parent e8e067a05a
commit 09d39b2bbf
2 changed files with 4 additions and 4 deletions

View File

@@ -36,7 +36,7 @@ func tunnelConfigurationsDirectory() (string, error) {
}
// PresetRootDirectory causes RootDirectory() to not try any automatic deduction, and instead
// uses what's passed to it. This isn't used by wireguard-windows, but is useful for external
// uses what's passed to it. This isn't used by amneziawg-windows, but is useful for external
// consumers of our libraries who might want to do strange things.
func PresetRootDirectory(root string) {
cachedRootDir = root
@@ -50,7 +50,7 @@ func RootDirectory(create bool) (string, error) {
if err != nil {
return "", err
}
root = filepath.Join(root, "WireGuard")
root = filepath.Join(root, "AmneziaWG")
if !create {
return filepath.Join(root, "Data"), nil
}

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 "WireGuardTunnel$" + 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\WireGuard\` + tunnelName, nil
return `\\.\pipe\ProtectedPrefix\Administrators\AmneziaWG\` + tunnelName, nil
}