Commit fbf135d2 authored by James Mills's avatar James Mills Committed by Miek Gieben

Fix build error with incorrect arguments to SetDo() (#856)

parent a04fe81b
......@@ -52,7 +52,7 @@ Option:
// add option if not found
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: ""})
result = RewriteDone
}
......@@ -81,7 +81,7 @@ func (rule *edns0LocalRule) Rewrite(r *dns.Msg) Result {
// add option if not found
if !found && (rule.action == Append || rule.action == Set) {
o.SetDo(true)
o.SetDo()
var opt dns.EDNS0_LOCAL
opt.Code = rule.code
opt.Data = rule.data
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment