From 2be0b50f7f04c7223e2b82601ac9ca1e199a9c21 Mon Sep 17 00:00:00 2001 From: Matthijs Mekking Date: Thu, 26 Jan 2017 13:40:32 +0100 Subject: [PATCH] use the fudge (#441) --- defaults.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/defaults.go b/defaults.go index cf456165..3308ec83 100644 --- a/defaults.go +++ b/defaults.go @@ -102,11 +102,11 @@ func (dns *Msg) SetAxfr(z string) *Msg { // SetTsig appends a TSIG RR to the message. // This is only a skeleton TSIG RR that is added as the last RR in the // additional section. The Tsig is calculated when the message is being send. -func (dns *Msg) SetTsig(z, algo string, fudge, timesigned int64) *Msg { +func (dns *Msg) SetTsig(z, algo string, fudge uint16, timesigned int64) *Msg { t := new(TSIG) t.Hdr = RR_Header{z, TypeTSIG, ClassANY, 0, 0} t.Algorithm = algo - t.Fudge = 300 + t.Fudge = fudge t.TimeSigned = uint64(timesigned) t.OrigId = dns.Id dns.Extra = append(dns.Extra, t)