Rename DefaultTTL to DefaulTtl
This is more inline with the rest
This commit is contained in:
parent
94ff056c2f
commit
f1ff334ab1
|
@ -66,7 +66,7 @@ func (dns *Msg) SetIxfr(z string, serial uint32) {
|
|||
dns.Question = make([]Question, 1)
|
||||
dns.Ns = make([]RR, 1)
|
||||
s := new(RR_SOA)
|
||||
s.Hdr = RR_Header{z, TypeSOA, ClassINET, DefaultTTL, 0}
|
||||
s.Hdr = RR_Header{z, TypeSOA, ClassINET, DefaultTtl, 0}
|
||||
s.Serial = serial
|
||||
|
||||
dns.Question[0] = Question{z, TypeIXFR, ClassINET}
|
||||
|
|
2
dns.go
2
dns.go
|
@ -59,7 +59,7 @@ const (
|
|||
Year68 = 2 << (32 - 1) // For RFC1982 (Serial Arithmetic) calculations in 32 bits.
|
||||
DefaultMsgSize = 4096 // A standard default for larger than 512 packets.
|
||||
MaxMsgSize = 65536 // Largest possible DNS packet.
|
||||
DefaultTTL = 3600 // Default TTL.
|
||||
DefaultTtl = 3600 // Default TTL.
|
||||
)
|
||||
|
||||
// Error represents a DNS error
|
||||
|
|
Loading…
Reference in New Issue