aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-08-31 07:52:08 -0600
committerJason A. Donenfeld <Jason@zx2c4.com>2019-09-01 21:46:47 -0600
commit677cb8f07c82d3f33574c535c04e767e034042c1 (patch)
tree03a62b9acc34d182a9f095c2280ac44cdcd364cd
parentmanager: enforce client pipe ownership (diff)
downloadwireguard-windows-677cb8f07c82d3f33574c535c04e767e034042c1.tar.xz
wireguard-windows-677cb8f07c82d3f33574c535c04e767e034042c1.zip
services: use protected prefix for named pipe
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
-rw-r--r--services/names.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/names.go b/services/names.go
index 3b9003d0..74445482 100644
--- a/services/names.go
+++ b/services/names.go
@@ -22,5 +22,5 @@ func PipePathOfTunnel(tunnelName string) (string, error) {
if !conf.TunnelNameIsValid(tunnelName) {
return "", errors.New("Tunnel name is not valid")
}
- return "\\\\.\\pipe\\WireGuard\\" + tunnelName, nil
+ return `\\.\pipe\ProtectedPrefix\Administrators\WireGuard\` + tunnelName, nil
}