aboutsummaryrefslogtreecommitdiffstats
path: root/tun
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-03-01 00:11:12 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2019-03-01 00:11:12 +0100
commitd435be35cac49af9367b2005d831d55e570c4b1b (patch)
treeac5c96398c64c03a9e962665e69546f3e0402c5c /tun
parenttun: allow special methods in NativeTun (diff)
downloadwireguard-go-d435be35cac49af9367b2005d831d55e570c4b1b.tar.xz
wireguard-go-d435be35cac49af9367b2005d831d55e570c4b1b.zip
tun: windows: expose GUID
Diffstat (limited to 'tun')
-rw-r--r--tun/tun_windows.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/tun/tun_windows.go b/tun/tun_windows.go
index ed6d7d2..94efe48 100644
--- a/tun/tun_windows.go
+++ b/tun/tun_windows.go
@@ -350,3 +350,7 @@ func (tun *NativeTun) Write(buff []byte, offset int) (int, error) {
// Flush write buffer.
return len(buff) - offset, tun.flush()
}
+
+func (tun *NativeTun) GUID() windows.GUID {
+ return *(*windows.GUID)(tun.wt)
+} \ No newline at end of file