Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

client.add() with manual trackers, causes duplicates #571

Closed
feross opened this issue Jan 13, 2016 · 4 comments
Closed

client.add() with manual trackers, causes duplicates #571

feross opened this issue Jan 13, 2016 · 4 comments
Labels

Comments

@feross
Copy link
Member

@feross feross commented Jan 13, 2016

Reposting issue for @DiegoRBaquero, from #563 (comment):

@feross Yes, for the opts I add manually both wss trackers in the client.add

So the problem is that, when specifying trackers manually for a http(s) torrent file, repeated trackers will be allowed.

See torrent.js#L238

This isn't working then: torrent.js#L258 because when encoded to a magnet uri, they should be unique, see torrent.js#L263

@feross feross added the bug label Jan 13, 2016
feross added a commit that referenced this issue Jan 15, 2016
For #571.

Still can’t reproduce the issue
@feross

This comment has been minimized.

Copy link
Member Author

@feross feross commented Jan 15, 2016

@DiegoRBaquero I can't seem to reproduce this issue still. I even took a look at the BTorrent codebase to see if I could find the cause.

I just committed some additional tests that work fine.

If you could help get to the bottom of this, that would be great!

@DiegoRBaquero

This comment has been minimized.

Copy link
Member

@DiegoRBaquero DiegoRBaquero commented Jan 15, 2016

@feross I will look into this issue this weekend, having bad internet connection right now. I'll be home tomorrow and check this

@DiegoRBaquero

This comment has been minimized.

Copy link
Member

@DiegoRBaquero DiegoRBaquero commented Jan 26, 2016

The issue in BTorrent was that the announce list was an array of array of string so uniq wasn't really working on array <-> string comparison. Fixed in BTorrent 0.12.1.

@lock

This comment has been minimized.

Copy link

@lock lock bot commented May 4, 2018

This thread has been automatically locked because it has not had recent activity. To discuss futher, please open a new issue.

@lock lock bot locked as resolved and limited conversation to collaborators May 4, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.