From: Jason A. Donenfeld Date: Thu, 28 Feb 2019 23:11:12 +0000 (+0100) Subject: tun: windows: expose GUID X-Git-Tag: 0.0.20190409~44 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d435be35cac49af9367b2005d831d55e570c4b1b;p=thirdparty%2Fwireguard-go.git tun: windows: expose GUID --- 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