From 0a8c78deb142bf69544bc3206b7721f23f6cd69c Mon Sep 17 00:00:00 2001 From: Carlos Hernandez Date: Fri, 19 Jul 2024 08:44:12 -0600 Subject: [PATCH] Minor fix local dns search domain (#2287) --- client/internal/dns/host_darwin.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/internal/dns/host_darwin.go b/client/internal/dns/host_darwin.go index b5f6f9295..5dee305c2 100644 --- a/client/internal/dns/host_darwin.go +++ b/client/internal/dns/host_darwin.go @@ -225,8 +225,8 @@ func (s *systemConfigurator) getSystemDNSSettings() (SystemDNSSettings, error) { } if inSearchDomainsArray { - searchDomains := strings.Split(line, " : ") - dnsSettings.Domains = append(dnsSettings.Domains, searchDomains...) + searchDomain := strings.Split(line, " : ")[1] + dnsSettings.Domains = append(dnsSettings.Domains, searchDomain) } else if inServerAddressesArray { address := strings.Split(line, " : ")[1] if ip := net.ParseIP(address); ip != nil && ip.To4() != nil {