diff options
author | 2024-04-26 13:12:25 -0400 | |
---|---|---|
committer | 2024-04-26 13:12:25 -0400 | |
commit | 5b6d8e356cea15ef35b47db1a5a605886494b80e (patch) | |
tree | beca6f7c6b815ebc8a281e5535a40b129325073d /plugin/pkg/parse/host.go | |
parent | c15fe973ee7caa7ef0bb89725f933d23bd7e4c6e (diff) | |
download | coredns-5b6d8e356cea15ef35b47db1a5a605886494b80e.tar.gz coredns-5b6d8e356cea15ef35b47db1a5a605886494b80e.tar.zst coredns-5b6d8e356cea15ef35b47db1a5a605886494b80e.zip |
[plugin/forward] Strip local zone from IPV6 nameservers (#6635)
Signed-off-by: Alejandro de Brito Fontes <aledbf@gmail.com>
Diffstat (limited to '')
-rw-r--r-- | plugin/pkg/parse/host.go | 2 |
1 files changed, 1 insertions, 1 deletions
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 } |