ChainSafe / discv5

A Typescript implementation of the Discv5 protocol
Apache License 2.0
28 stars 15 forks source link

fix: throw error when encoding/decoding PONG with invalid port #218

Closed jtraglia closed 2 years ago

jtraglia commented 2 years ago

According to the spec, recipient-port is an (unsigned) 16-bit integer. This PR ensures that those port values are valid.