diff options
Diffstat (limited to 'ipc/uapi_windows.go')
-rw-r--r-- | ipc/uapi_windows.go | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/ipc/uapi_windows.go b/ipc/uapi_windows.go index a4d68da..a1bfbd1 100644 --- a/ipc/uapi_windows.go +++ b/ipc/uapi_windows.go @@ -9,8 +9,7 @@ import ( "net" "golang.org/x/sys/windows" - - "golang.zx2c4.com/wireguard/ipc/winpipe" + "golang.zx2c4.com/wireguard/ipc/namedpipe" ) // TODO: replace these with actual standard windows error numbers from the win package @@ -61,10 +60,9 @@ func init() { } func UAPIListen(name string) (net.Listener, error) { - config := winpipe.ListenConfig{ + listener, err := (&namedpipe.ListenConfig{ SecurityDescriptor: UAPISecurityDescriptor, - } - listener, err := winpipe.Listen(`\\.\pipe\ProtectedPrefix\Administrators\WireGuard\`+name, &config) + }).Listen(`\\.\pipe\ProtectedPrefix\Administrators\WireGuard\` + name) if err != nil { return nil, err } |