aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-10-08 10:00:44 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2019-10-09 09:44:03 +0200
commit268569db5c32387bc5e40be01c943e7be8aca59b (patch)
treed4021d8a79589d39c61956d6cbb22f0f98089037
parentmod: bump versions (diff)
downloadwireguard-windows-268569db5c32387bc5e40be01c943e7be8aca59b.tar.xz
wireguard-windows-268569db5c32387bc5e40be01c943e7be8aca59b.zip
tunnel: print wintun version in debug log
-rw-r--r--tunnel/service.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/tunnel/service.go b/tunnel/service.go
index 0e0e5971..d393ea93 100644
--- a/tunnel/service.go
+++ b/tunnel/service.go
@@ -163,6 +163,12 @@ func (service *tunnelService) Execute(args []string, r <-chan svc.ChangeRequest,
return
}
nativeTun = wintun.(*tun.NativeTun)
+ wintunVersion, ndisVersion, err := nativeTun.Version()
+ if err != nil {
+ log.Printf("Warning: unable to determine Wintun version: %v", err)
+ } else {
+ log.Printf("Using Wintun/%s (NDIS %s)", wintunVersion, ndisVersion)
+ }
log.Println("Enabling firewall rules")
err = enableFirewall(conf, nativeTun)