ipc: windows: use protected prefix

This commit is contained in:
Jason A. Donenfeld 2019-08-31 07:48:42 -06:00
parent e4b957183c
commit 7937840f96
2 changed files with 2 additions and 2 deletions

View file

@ -54,7 +54,7 @@ func UAPIListen(name string) (net.Listener, error) {
config := winpipe.PipeConfig{
SecurityDescriptor: UAPISecurityDescriptor,
}
listener, err := winpipe.ListenPipe("\\\\.\\pipe\\WireGuard\\"+name, &config)
listener, err := winpipe.ListenPipe(`\\.\pipe\ProtectedPrefix\Administrators\WireGuard\`+name, &config)
if err != nil {
return nil, err
}