WireGuard / wgctrl-go

Package wgctrl enables control of WireGuard interfaces on multiple platforms.
https://godoc.org/golang.zx2c4.com/wireguard/wgctrl
MIT License
730 stars 85 forks source link

internal/wguser: initial support for Windows #38

Closed mdlayher closed 5 years ago

mdlayher commented 5 years ago

The first steps toward Windows support. We can find and attempt to connect to named pipes, but some more work will be necessary to actually allow accessing them:

matt@DESKTOP-2G8V6U5 C:\Users\matt\wireguardctrl\cmd\wgctrl>go build

matt@DESKTOP-2G8V6U5 C:\Users\matt\wireguardctrl\cmd\wgctrl>wgctrl.exe
2019/05/12 12:43:59 failed to get devices: open \\.\pipe\WireGuard\wgwindows0: Access is denied.

matt@DESKTOP-2G8V6U5 C:\Users\matt\wireguardctrl\cmd\wgctrl>wgctrl.exe wgwindows0
2019/05/12 12:44:02 failed to get device "wgwindows0": open \\.\pipe\WireGuard\wgwindows0: Access is denied.
mdlayher commented 5 years ago

Updates #36.