Browse Source

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]>
Renato Aguiar 1 year ago
parent
commit
0ffc7bf38b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      wgengine/userspace.go

+ 1 - 1
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()