aboutsummaryrefslogtreecommitdiffstats
path: root/tun/tun_windows.go
diff options
context:
space:
mode:
authorSimon Rozman <simon@rozman.si>2019-03-22 15:28:33 +0100
committerSimon Rozman <simon@rozman.si>2019-03-22 15:29:14 +0100
commit41c30a72791999aac8973b82224d3d4b9162dd51 (patch)
tree08ed7cae2a4f4722a272d139b2b0b5619ec26a11 /tun/tun_windows.go
parenttun: windows: Increase unavailable adapter timeout to 30sec (diff)
downloadwireguard-go-41c30a72791999aac8973b82224d3d4b9162dd51.tar.xz
wireguard-go-41c30a72791999aac8973b82224d3d4b9162dd51.zip
tun: windows: Adapter devices renamed to WINTUN<LUID Index>
Signed-off-by: Simon Rozman <simon@rozman.si>
Diffstat (limited to 'tun/tun_windows.go')
-rw-r--r--tun/tun_windows.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/tun/tun_windows.go b/tun/tun_windows.go
index d4be66b..4223190 100644
--- a/tun/tun_windows.go
+++ b/tun/tun_windows.go
@@ -348,5 +348,5 @@ func (tun *NativeTun) Write(buff []byte, offset int) (int, error) {
// GUID returns Windows adapter instance ID.
//
func (tun *NativeTun) GUID() windows.GUID {
- return *(*windows.GUID)(tun.wt)
+ return tun.wt.CfgInstanceID
}