Fix MagicDNS on OpenBSD

Add OpenBSD to the list of platforms that need DNS reconfigured on link changes.

Signed-off-by: Renato Aguiar <[email protected]>
This commit is contained in:
Renato Aguiar authored and Brad Fitzpatrick committed 2024-11-01 10:44:30 -07:00
1 parent 49de23cf1b
commit 0ffc7bf38b
1 file changed
+1 -1
+1 -1
View File
@@ -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()