diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-10-08 09:58:58 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-10-08 09:58:58 +0200 |
commit | 1f146a5e7ad9081c79026339c2ad82f357743d66 (patch) | |
tree | 4d9ed3142e1dfe4bfd52afb13cb6d54f02144563 /tun/tun_windows.go | |
parent | f2501aa6c8c0e658b0c026201de3e9fdb7697593 (diff) |
wintun: expose version
Diffstat (limited to 'tun/tun_windows.go')
-rw-r--r-- | tun/tun_windows.go | 5 |
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) |