From 0ffc7bf38b92f4b064d00fe89239f2da756de642 Mon Sep 17 00:00:00 2001 From: Renato Aguiar Date: Fri, 25 Oct 2024 18:25:39 -0700 Subject: [PATCH] Fix MagicDNS on OpenBSD Add OpenBSD to the list of platforms that need DNS reconfigured on link changes. Signed-off-by: Renato Aguiar --- wgengine/userspace.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wgengine/userspace.go b/wgengine/userspace.go index fc204736a..2dd0c4cd5 100644 --- a/wgengine/userspace.go +++ b/wgengine/userspace.go @@ -1236,7 +1236,7 @@ func (e *userspaceEngine) linkChange(delta *netmon.ChangeDelta) { // and Apple platforms. if changed { switch runtime.GOOS { - case "linux", "android", "ios", "darwin": + case "linux", "android", "ios", "darwin", "openbsd": e.wgLock.Lock() dnsCfg := e.lastDNSConfig e.wgLock.Unlock()