From fde48d68ee68e3f7af735747d6b97ecb713d924a Mon Sep 17 00:00:00 2001 From: Matt Layher Date: Tue, 8 Feb 2022 09:40:51 -0500 Subject: [PATCH] internal/wglinux: set netlink.Config.Strict Signed-off-by: Matt Layher --- internal/wglinux/client_linux.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/wglinux/client_linux.go b/internal/wglinux/client_linux.go index 45f1c36..b14507f 100644 --- a/internal/wglinux/client_linux.go +++ b/internal/wglinux/client_linux.go @@ -30,7 +30,7 @@ type Client struct { // New creates a new Client and returns whether or not the generic netlink // interface is available. func New() (*Client, bool, error) { - c, err := genetlink.Dial(nil) + c, err := genetlink.Dial(&netlink.Config{Strict: true}) if err != nil { return nil, false, err }