mirror of
https://github.com/webtorrent/bittorrent-tracker.git
synced 2025-01-18 12:11:36 +00:00
fix: only stringify views (#467)
This commit is contained in:
parent
51a6b6d6c0
commit
52f55020f3
@ -70,7 +70,7 @@ class Client extends EventEmitter {
|
||||
|
||||
// Remove trailing slash from trackers to catch duplicates
|
||||
announce = announce.map(announceUrl => {
|
||||
announceUrl = arr2text(announceUrl)
|
||||
if (ArrayBuffer.isView(announceUrl)) announceUrl = arr2text(announceUrl)
|
||||
if (announceUrl[announceUrl.length - 1] === '/') {
|
||||
announceUrl = announceUrl.substring(0, announceUrl.length - 1)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user