chore: add log to detect a usage of the Wireguard kernel module

This commit is contained in:
braginini 2021-06-24 12:49:14 +02:00
parent a40669270a
commit dac865c61f

View File

@ -11,6 +11,7 @@ import (
func Create(iface string, address string) error { func Create(iface string, address string) error {
if WireguardModExists() { if WireguardModExists() {
log.Debug("using kernel Wireguard module")
return CreateWithKernel(iface, address) return CreateWithKernel(iface, address)
} else { } else {
return CreateWithUserspace(iface, address) return CreateWithUserspace(iface, address)