From 6f66c7697d3bb6a259bf8d0261490cdee0ef8986 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Mon, 16 Sep 2019 23:36:49 -0600 Subject: global: use SECURITY_DESCRIPTOR apis from x/sys/windows Signed-off-by: Jason A. Donenfeld --- manager/ipc_server.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'manager/ipc_server.go') diff --git a/manager/ipc_server.go b/manager/ipc_server.go index 9b2aac43..0a3bceae 100644 --- a/manager/ipc_server.go +++ b/manager/ipc_server.go @@ -15,11 +15,11 @@ import ( "os" "sync" "sync/atomic" - "syscall" "time" "golang.org/x/sys/windows" "golang.org/x/sys/windows/svc" + "golang.zx2c4.com/wireguard/ipc/winpipe" "golang.zx2c4.com/wireguard/windows/conf" @@ -59,7 +59,7 @@ func (s *ManagerService) RuntimeConfig(tunnelName string, config *conf.Config) e if err != nil { return err } - pipe, err := winpipe.DialPipe(pipePath, nil, (*syscall.SID)(localSystem)) + pipe, err := winpipe.DialPipe(pipePath, nil, localSystem) if err != nil { return err } -- cgit v1.2.3-59-g8ed1b