mirror of
https://github.com/coredns/coredns.git
synced 2025-11-02 10:13:14 -05:00
plugin/file: preserve case in SRV record names and targets per RFC 6763 (#7402)
This commit is contained in:
@@ -2,6 +2,7 @@ package tree
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"strings"
|
||||
|
||||
"github.com/miekg/dns"
|
||||
)
|
||||
@@ -27,8 +28,8 @@ func less(a, b string) int {
|
||||
|
||||
// sadly this []byte will allocate... TODO(miek): check if this is needed
|
||||
// for a name, otherwise compare the strings.
|
||||
ab := []byte(a[ai:aj])
|
||||
bb := []byte(b[bi:bj])
|
||||
ab := []byte(strings.ToLower(a[ai:aj]))
|
||||
bb := []byte(strings.ToLower(b[bi:bj]))
|
||||
doDDD(ab)
|
||||
doDDD(bb)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user