mirror of
https://github.com/netbirdio/netbird.git
synced 2024-11-29 03:23:56 +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 {
|
if inSearchDomainsArray {
|
||||||
searchDomains := strings.Split(line, " : ")
|
searchDomain := strings.Split(line, " : ")[1]
|
||||||
dnsSettings.Domains = append(dnsSettings.Domains, searchDomains...)
|
dnsSettings.Domains = append(dnsSettings.Domains, searchDomain)
|
||||||
} else if inServerAddressesArray {
|
} else if inServerAddressesArray {
|
||||||
address := strings.Split(line, " : ")[1]
|
address := strings.Split(line, " : ")[1]
|
||||||
if ip := net.ParseIP(address); ip != nil && ip.To4() != nil {
|
if ip := net.ParseIP(address); ip != nil && ip.To4() != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user