mirror of
https://github.com/webtorrent/bittorrent-tracker.git
synced 2025-01-31 02:21: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) {
|
||||
if(parsedUrl.port==null) {
|
||||
parsedUrl.port=80;
|
||||
if (!parsedUrl.port) {
|
||||
parsedUrl.port = 80;
|
||||
}
|
||||
socket.send(message, 0, message.length, parsedUrl.port, parsedUrl.hostname)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user