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:
parent
ec906fe37f
commit
f23171af5f
2 changed files with 8 additions and 8 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue