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

This commit is contained in:
James Mills
2017-08-08 01:29:54 -07:00
committed by Miek Gieben
parent a04fe81bd8
commit fbf135d265

View File

@@ -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