Log whether kernel or userspace WireGuard is used (#345)

This commit is contained in:
Misha Bragin 2022-05-30 15:52:43 +02:00 committed by GitHub
parent 87631cbc8b
commit 0fbe78375e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -38,9 +38,10 @@ func WireguardModExists() bool {
func (w *WGIface) Create() error {
if WireguardModExists() {
log.Debug("using kernel Wireguard module")
log.Info("using kernel WireGuard")
return w.CreateWithKernel()
} else {
log.Info("using userspace WireGuard")
return w.CreateWithUserspace()
}
}