From 0fbe78375e96a9ae03abc49db609215e6baa1a61 Mon Sep 17 00:00:00 2001 From: Misha Bragin Date: Mon, 30 May 2022 15:52:43 +0200 Subject: [PATCH] Log whether kernel or userspace WireGuard is used (#345) --- iface/iface_linux.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/iface/iface_linux.go b/iface/iface_linux.go index d010fc130..6d4c62485 100644 --- a/iface/iface_linux.go +++ b/iface/iface_linux.go @@ -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() } }