mirror of
https://github.com/coredns/coredns.git
synced 2025-11-02 10:13:14 -05:00
Fix build error with incorrect arguments to SetDo() (#856)
This commit is contained in:
@@ -52,7 +52,7 @@ Option:
|
|||||||
|
|
||||||
// add option if not found
|
// add option if not found
|
||||||
if !found && (rule.action == Append || rule.action == Set) {
|
if !found && (rule.action == Append || rule.action == Set) {
|
||||||
o.SetDo(true)
|
o.SetDo()
|
||||||
o.Option = append(o.Option, &dns.EDNS0_NSID{Code: dns.EDNS0NSID, Nsid: ""})
|
o.Option = append(o.Option, &dns.EDNS0_NSID{Code: dns.EDNS0NSID, Nsid: ""})
|
||||||
result = RewriteDone
|
result = RewriteDone
|
||||||
}
|
}
|
||||||
@@ -81,7 +81,7 @@ func (rule *edns0LocalRule) Rewrite(r *dns.Msg) Result {
|
|||||||
|
|
||||||
// add option if not found
|
// add option if not found
|
||||||
if !found && (rule.action == Append || rule.action == Set) {
|
if !found && (rule.action == Append || rule.action == Set) {
|
||||||
o.SetDo(true)
|
o.SetDo()
|
||||||
var opt dns.EDNS0_LOCAL
|
var opt dns.EDNS0_LOCAL
|
||||||
opt.Code = rule.code
|
opt.Code = rule.code
|
||||||
opt.Data = rule.data
|
opt.Data = rule.data
|
||||||
|
|||||||
Reference in New Issue
Block a user