]> git.ipfire.org Git - thirdparty/wireguard-go.git/commitdiff
tun: windows: expose GUID
authorJason A. Donenfeld <Jason@zx2c4.com>
Thu, 28 Feb 2019 23:11:12 +0000 (00:11 +0100)
committerJason A. Donenfeld <Jason@zx2c4.com>
Thu, 28 Feb 2019 23:11:12 +0000 (00:11 +0100)
tun/tun_windows.go

index ed6d7d2595636bb7cfdabfbc06001e9ed44bb82e..94efe48bcadc1ed3bbdbdb0e585c0936ee36d42c 100644 (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)
+}
\ No newline at end of file