mirror of
https://github.com/netbirdio/netbird.git
synced 2024-11-25 09:33:24 +01:00
Minor fix local dns search domain (#2287)
This commit is contained in:
parent
c815ad86fd
commit
0a8c78deb1
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user