This commit is contained in:
Feross Aboukhadijeh 2014-04-04 23:27:38 -07:00
parent c8cc97afea
commit 5c7ebb7b58

View File

@ -208,8 +208,8 @@ Client.prototype._requestUdp = function (announceUrl, opts) {
}) })
function send (message) { function send (message) {
if(parsedUrl.port==null) { if (!parsedUrl.port) {
parsedUrl.port=80; parsedUrl.port = 80;
} }
socket.send(message, 0, message.length, parsedUrl.port, parsedUrl.hostname) socket.send(message, 0, message.length, parsedUrl.port, parsedUrl.hostname)
} }