Return bytes when packing EDNS0_LLQ struct
This commit is contained in:
parent
6b32a711e9
commit
eb039fb959
2
edns.go
2
edns.go
|
@ -379,7 +379,7 @@ func (e *EDNS0_LLQ) pack() ([]byte, error) {
|
||||||
b[15] = byte(e.LeaseLife >> 16)
|
b[15] = byte(e.LeaseLife >> 16)
|
||||||
b[16] = byte(e.LeaseLife >> 8)
|
b[16] = byte(e.LeaseLife >> 8)
|
||||||
b[17] = byte(e.LeaseLife)
|
b[17] = byte(e.LeaseLife)
|
||||||
return nil, nil
|
return b, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (e *EDNS0_LLQ) unpack(b []byte) {
|
func (e *EDNS0_LLQ) unpack(b []byte) {
|
||||||
|
|
Loading…
Reference in New Issue