aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tunnel/service.go
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
commit85700ee23a7cb53a51051d9c778ade46970d8811 (patch)
treed4021d8a79589d39c61956d6cbb22f0f98089037 /tunnel/service.go
parentmod: bump versions (diff)
downloadwireguard-windows-85700ee23a7cb53a51051d9c778ade46970d8811.tar.xz
wireguard-windows-85700ee23a7cb53a51051d9c778ade46970d8811.zip
tunnel: print wintun version in debug log
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to '')
-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)