mirror of
https://github.com/netbirdio/netbird.git
synced 2024-12-23 23:29:15 +01:00
Log whether kernel or userspace WireGuard is used (#345)
This commit is contained in:
parent
87631cbc8b
commit
0fbe78375e
@ -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()
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user