From 5b6d8e356cea15ef35b47db1a5a605886494b80e Mon Sep 17 00:00:00 2001 From: Manuel Alejandro de Brito Fontes Date: Fri, 26 Apr 2024 13:12:25 -0400 Subject: [plugin/forward] Strip local zone from IPV6 nameservers (#6635) Signed-off-by: Alejandro de Brito Fontes --- plugin/pkg/parse/host.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugin/pkg/parse/host.go') diff --git a/plugin/pkg/parse/host.go b/plugin/pkg/parse/host.go index f90e4fc77..78f7cd93b 100644 --- a/plugin/pkg/parse/host.go +++ b/plugin/pkg/parse/host.go @@ -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 } -- cgit v1.2.3