summaryrefslogtreecommitdiffhomepage
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
parent967d1a0f3d7aae4a0720895a2f6e35156b34214b (diff)
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