set ExtendedRcode return type to int instead of uint8 (#347)
This commit is contained in:
parent
89d9c5e74b
commit
a5cc44dc6b
4
edns.go
4
edns.go
|
@ -96,8 +96,8 @@ func (rr *OPT) SetVersion(v uint8) {
|
|||
}
|
||||
|
||||
// ExtendedRcode returns the EDNS extended RCODE field (the upper 8 bits of the TTL).
|
||||
func (rr *OPT) ExtendedRcode() uint8 {
|
||||
return uint8((rr.Hdr.Ttl&0xFF000000)>>24) + 15
|
||||
func (rr *OPT) ExtendedRcode() int {
|
||||
return int((rr.Hdr.Ttl&0xFF000000)>>24) + 15
|
||||
}
|
||||
|
||||
// SetExtendedRcode sets the EDNS extended RCODE field.
|
||||
|
|
Loading…
Reference in New Issue