Skip to content

Commit

Permalink
fixup! fix: use default CoAP port as fallback for request URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
JKRhb committed May 11, 2022
1 parent abeebc9 commit 6693b64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion coap/coap-request.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ module.exports = function (RED) {

function _determinePort(url) {
const port = parseInt(url.port);
if (port == null || isNaN(port)) {
if (isNaN(port)) {
return defaultCoapPort;
}

Expand Down

0 comments on commit 6693b64

Please sign in to comment.