Skip to content

Commit

Permalink
fixup! fix(coap-server): ignore incoming messages with an invalid sou…
Browse files Browse the repository at this point in the history
…rce port
  • Loading branch information
JKRhb committed Dec 11, 2023
1 parent a640d6c commit ba92879
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/binding-coap/src/coap-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ export default class CoapServer implements ProtocolServer {

private async handleRequest(req: IncomingMessage, res: OutgoingMessage) {
const sourcePort = req.rsinfo.port;
const hasInvalidPortRange = sourcePort < 1 || sourcePort > 65535;
const hasInvalidPortRange = sourcePort < 1 || sourcePort > 65535;
if (hasInvalidPortRange) {
// Ignore requests with an invalid source port
// See https://github.com/eclipse-thingweb/node-wot/issues/1182
Expand Down

0 comments on commit ba92879

Please sign in to comment.