Merge commit 'ababac6b57ef231d26d7fc628403c63d94b4340b'

This commit is contained in:
Miek Gieben 2013-01-27 17:17:51 +01:00
commit 9b9bdd599e
2 changed files with 4 additions and 4 deletions

View File

@ -73,10 +73,10 @@ func handleReflect(w dns.ResponseWriter, r *dns.Msg) {
}
if o := r.IsEdns0(); o != nil {
for _, s := range o.Options {
switch e = s.(type) {
for _, s := range o.Option {
switch e := s.(type) {
case *dns.EDNS0_SUBNET:
println("SUBNET")
log.Printf("Edns0 subnet %s", e.Address)
}
}
}

2
msg.go
View File

@ -69,7 +69,7 @@ type MsgHdr struct {
// The layout of a DNS message.
type Msg struct {
MsgHdr
Compress bool // If true, the message will be compressed when converted to wire format.
Compress bool `json:"-"` // If true, the message will be compressed when converted to wire format.
Question []Question // Holds the RR(s) of the question section.
Answer []RR // Holds the RR(s) of the answer section.
Ns []RR // Holds the RR(s) of the authority section.