mirror of
https://github.com/amnezia-vpn/euphoria-windows.git
synced 2026-05-17 08:15:59 +03:00
unsafe rebranding: change tunnel, pipe and folder names
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user