mirror of
https://github.com/miekg/dns.git
synced 2025-10-19 22:01:01 +02:00
fmt
This commit is contained in:
parent
5fd5c6d9eb
commit
06fc321c2c
14
dns_test.go
14
dns_test.go
@ -319,13 +319,13 @@ func TestMsgLength2(t *testing.T) {
|
|||||||
func TestMsgLengthCompressionMalformed(t *testing.T) {
|
func TestMsgLengthCompressionMalformed(t *testing.T) {
|
||||||
// SOA with empty hostmaster, which is illegal
|
// SOA with empty hostmaster, which is illegal
|
||||||
soa := &SOA{Hdr: RR_Header{Name: ".", Rrtype: TypeSOA, Class: ClassINET, Ttl: 12345},
|
soa := &SOA{Hdr: RR_Header{Name: ".", Rrtype: TypeSOA, Class: ClassINET, Ttl: 12345},
|
||||||
Ns: ".",
|
Ns: ".",
|
||||||
Mbox: "",
|
Mbox: "",
|
||||||
Serial: 0,
|
Serial: 0,
|
||||||
Refresh: 28800,
|
Refresh: 28800,
|
||||||
Retry: 7200,
|
Retry: 7200,
|
||||||
Expire: 604800,
|
Expire: 604800,
|
||||||
Minttl: 60}
|
Minttl: 60}
|
||||||
m := new(Msg)
|
m := new(Msg)
|
||||||
m.Compress = true
|
m.Compress = true
|
||||||
m.Ns = []RR{soa}
|
m.Ns = []RR{soa}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user