mirror of
https://github.com/coredns/coredns.git
synced 2025-10-28 08:44:17 -04:00
Fix wildcard records issue in rout53 plugin (#4038)
* Fix wildcard records issue in rout53 plugin This PR tries to address 4035 where wild card records does not return correctly in route53 plugin. The issue was that `strings.Index(s, substr string)` expect substr to be a string but the code defines as char. This PR fixes 4035. Signed-off-by: Yong Tang <yong.tang.github@outlook.com> * Fix failed tests Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
This commit is contained in:
@@ -148,7 +148,7 @@ func (h *Route53) ServeDNS(ctx context.Context, w dns.ResponseWriter, r *dns.Msg
|
||||
return dns.RcodeSuccess, nil
|
||||
}
|
||||
|
||||
const escapeSeq = `\\`
|
||||
const escapeSeq = "\\"
|
||||
|
||||
// maybeUnescape parses s and converts escaped ASCII codepoints (in octal) back
|
||||
// to its ASCII representation.
|
||||
|
||||
Reference in New Issue
Block a user