[plugin/forward] Strip local zone from IPV6 nameservers (#6635)

Signed-off-by: Alejandro de Brito Fontes <aledbf@gmail.com>
This commit is contained in:
Manuel Alejandro de Brito Fontes
2024-04-26 13:12:25 -04:00
committed by GitHub
parent c15fe973ee
commit 5b6d8e356c
2 changed files with 10 additions and 1 deletions

View File

@@ -99,7 +99,7 @@ func tryFile(s string) ([]string, error) {
servers := []string{}
for _, s := range c.Servers {
servers = append(servers, net.JoinHostPort(s, c.Port))
servers = append(servers, net.JoinHostPort(stripZone(s), c.Port))
}
return servers, nil
}