From 1f146a5e7ad9081c79026339c2ad82f357743d66 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Tue, 8 Oct 2019 09:58:58 +0200 Subject: wintun: expose version --- tun/tun_windows.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tun/tun_windows.go') 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) -- cgit v1.2.3