mirror of
https://github.com/miekg/dns.git
synced 2025-10-11 18:01:02 +02:00
Return as the last statement
Be compatible with older go releases.
This commit is contained in:
parent
d41d87df59
commit
007c0f06e4
3
edns.go
3
edns.go
@ -230,9 +230,8 @@ type EDNS0_SUBNET struct {
|
|||||||
func (e *EDNS0_SUBNET) Option() uint16 {
|
func (e *EDNS0_SUBNET) Option() uint16 {
|
||||||
if e.DraftOption {
|
if e.DraftOption {
|
||||||
return EDNS0SUBNETDRAFT
|
return EDNS0SUBNETDRAFT
|
||||||
} else {
|
|
||||||
return EDNS0SUBNET
|
|
||||||
}
|
}
|
||||||
|
return EDNS0SUBNET
|
||||||
}
|
}
|
||||||
|
|
||||||
func (e *EDNS0_SUBNET) pack() ([]byte, error) {
|
func (e *EDNS0_SUBNET) pack() ([]byte, error) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user