diff --git a/index.js b/index.js index 64b8331..b49e0d8 100644 --- a/index.js +++ b/index.js @@ -208,6 +208,9 @@ Client.prototype._requestUdp = function (announceUrl, opts) { }) function send (message) { + if(parsedUrl.port==null) { + parsedUrl.port=80; + } socket.send(message, 0, message.length, parsedUrl.port, parsedUrl.hostname) }