tun: windows: expose GUID

This commit is contained in:
Jason A. Donenfeld 2019-03-01 00:11:12 +01:00
parent 967d1a0f3d
commit d435be35ca

View File

@ -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)
}