mirror of
https://github.com/webtorrent/bittorrent-tracker.git
synced 2025-01-31 10:31:36 +00:00
style
This commit is contained in:
parent
c8cc97afea
commit
5c7ebb7b58
4
index.js
4
index.js
@ -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)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user