From d435be35cac49af9367b2005d831d55e570c4b1b Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Fri, 1 Mar 2019 00:11:12 +0100 Subject: tun: windows: expose GUID --- tun/tun_windows.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tun/tun_windows.go') 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 -- cgit v1.2.3-59-g8ed1b