Skip to content

Commit

Permalink
Remove blank entry in nameservers
Browse files Browse the repository at this point in the history
Signed-off-by: Fata Nugraha <[email protected]>
  • Loading branch information
fatanugraha committed Jan 9, 2025
1 parent 79a7988 commit ac7404b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/services/dns/dns_config_unix.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func getDNSHostAndPort(path string) ([]string, error) {
if err != nil {
return []string{}, err
}
hosts := make([]string, len(conf.Servers))
hosts := make([]string, 0, len(conf.Servers))
for _, server := range conf.Servers {
dnsIP, err := netip.ParseAddr(server)
if err != nil {
Expand Down

0 comments on commit ac7404b

Please sign in to comment.