fix regression: convert buffer to string

This commit is contained in:
Feross Aboukhadijeh 2015-05-24 16:43:30 +02:00
parent 9f0f286489
commit e4d413d83b

View File

@ -69,6 +69,7 @@ function Client (peerId, port, torrent, opts) {
self._trackers = announce
.map(function (announceUrl) {
announceUrl = announceUrl.toString()
var protocol = url.parse(announceUrl).protocol
if ((protocol === 'http:' || protocol === 'https:') &&