Skip to content

Commit

Permalink
Additional debug logs
Browse files Browse the repository at this point in the history
  • Loading branch information
qdm12 committed Jul 22, 2023
1 parent 71f5852 commit d1a86a2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/netlink/wireguard.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,13 @@ func (n *NetLink) IsWireguardSupported() (ok bool, err error) {

// Try loading the wireguard module, since some systems do not load
// it after a boot. If this fails, wireguard is assumed to not be supported.
n.debugLogger.Debugf("wireguard family not found, trying to load wireguard kernel module")
err = mod.Probe("wireguard")
if err != nil {
n.debugLogger.Debugf("failed trying to load Wireguard kernel module: %s", err)
n.debugLogger.Debugf("failed loading wireguard kernel module: %s", err)
return false, nil
}
n.debugLogger.Debugf("wireguard kernel module loaded successfully")

// Re-check if the Wireguard family is now available, after loading
// the wireguard kernel module.
Expand Down

0 comments on commit d1a86a2

Please sign in to comment.