mirror of
https://github.com/webtorrent/bittorrent-tracker.git
synced 2025-01-18 20:21:36 +00:00
fix regression: convert buffer to string
This commit is contained in:
parent
9f0f286489
commit
e4d413d83b
@ -69,6 +69,7 @@ function Client (peerId, port, torrent, opts) {
|
|||||||
|
|
||||||
self._trackers = announce
|
self._trackers = announce
|
||||||
.map(function (announceUrl) {
|
.map(function (announceUrl) {
|
||||||
|
announceUrl = announceUrl.toString()
|
||||||
var protocol = url.parse(announceUrl).protocol
|
var protocol = url.parse(announceUrl).protocol
|
||||||
|
|
||||||
if ((protocol === 'http:' || protocol === 'https:') &&
|
if ((protocol === 'http:' || protocol === 'https:') &&
|
||||||
|
Loading…
Reference in New Issue
Block a user