Return the correct code

This commit is contained in:
Miek Gieben 2012-07-05 12:53:45 +02:00
parent 743e1dd3e8
commit 335545f6d7
1 changed files with 2 additions and 2 deletions

View File

@ -155,7 +155,7 @@ type EDNS0_NSID struct {
}
func (e *EDNS0_NSID) Option() uint16 {
return e.Code
return EDNS0NSID
}
func (e *EDNS0_NSID) Pack() ([]byte, error) {
@ -199,7 +199,7 @@ type EDNS0_SUBNET struct {
}
func (e *EDNS0_SUBNET) Option() uint16 {
return e.Code
return EDNS0SUBNET
}
func (e *EDNS0_SUBNET) Pack() ([]byte, error) {