From 435593900842b8eff4c624ce6a903f71c9552ae2 Mon Sep 17 00:00:00 2001 From: Miek Gieben Date: Tue, 3 May 2016 15:22:17 +0000 Subject: [PATCH] massage edns cookie comment --- edns.go | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/edns.go b/edns.go index 5dce8b23..c1aebc11 100644 --- a/edns.go +++ b/edns.go @@ -291,13 +291,14 @@ func (e *EDNS0_SUBNET) String() (s string) { // The Cookie EDNS0 option // -//o := new(dns.OPT) -//o.Hdr.Name = "." -//o.Hdr.Rrtype = dns.TypeOPT -//e := new(dns.EDNS0_COOKIE) -//e.Code = dns.EDNS0COOKIE -//e.Cookie = "24a5ac.." -//o.Option = append(o.Option, e) +// o := new(dns.OPT) +// o.Hdr.Name = "." +// o.Hdr.Rrtype = dns.TypeOPT +// e := new(dns.EDNS0_COOKIE) +// e.Code = dns.EDNS0COOKIE +// e.Cookie = "24a5ac.." +// o.Option = append(o.Option, e) +// type EDNS0_COOKIE struct { Code uint16 // Always EDNS0COOKIE Cookie string // Hex-encoded cookie data