aboutsummaryrefslogtreecommitdiffstats
path: root/tun/tun_windows.go
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-10-08 09:58:58 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2019-10-08 09:58:58 +0200
commit1f146a5e7ad9081c79026339c2ad82f357743d66 (patch)
tree4d9ed3142e1dfe4bfd52afb13cb6d54f02144563 /tun/tun_windows.go
parentuapi: allow preventing creation of new peers when updating (diff)
downloadwireguard-go-1f146a5e7ad9081c79026339c2ad82f357743d66.tar.xz
wireguard-go-1f146a5e7ad9081c79026339c2ad82f357743d66.zip
wintun: expose version
Diffstat (limited to 'tun/tun_windows.go')
-rw-r--r--tun/tun_windows.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/tun/tun_windows.go b/tun/tun_windows.go
index 6a603a3..4b5da02 100644
--- a/tun/tun_windows.go
+++ b/tun/tun_windows.go
@@ -244,6 +244,11 @@ func (tun *NativeTun) LUID() uint64 {
return tun.wt.LUID()
}
+// Version returns the version of the Wintun driver and NDIS system currently loaded.
+func (tun *NativeTun) Version() (driverVersion string, ndisVersion string, err error) {
+ return tun.wt.Version()
+}
+
func (rate *rateJuggler) update(packetLen uint64) {
now := nanotime()
total := atomic.AddUint64(&rate.nextByteCount, packetLen)