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

Specify tracker at seeding #268

Closed
zxvfbg opened this issue Feb 16, 2015 · 3 comments
Closed

Specify tracker at seeding #268

zxvfbg opened this issue Feb 16, 2015 · 3 comments

Comments

@zxvfbg
Copy link

@zxvfbg zxvfbg commented Feb 16, 2015

Is it possible to specify specific tracker when we use seed method ?

Thank you

@feross

This comment has been minimized.

Copy link
Member

@feross feross commented Feb 17, 2015

Yep, you can pass in any valid create-torrent options, as it says in the readme.

Just use the announce option.

client.seed(files, {
  announce: [ 'udp://tracker.publicbt.com:80', 'udp://tracker.openbittorrent.com:80' ]
}, onTorrent)

Or, you can prioritize the trackers in "tiers" with the announceList option. See the spec for more details.

client.seed(files, {
  announceList: [
    [ 'udp://tracker.publicbt.com:80', 'udp://tracker.openbittorrent.com:80' ],
    [ 'tier2' ],
    [ 'tier3 first', 'tier3 second' ]
  ]
}, onTorrent)

If you omit this option entirely, then some default trackers will be selected, as specified, in the create-torrent readme.

@feross feross closed this Feb 17, 2015
@zxvfbg

This comment has been minimized.

Copy link
Author

@zxvfbg zxvfbg commented Feb 20, 2015

And how we can seed to wss tracker ?

@feross

This comment has been minimized.

Copy link
Member

@feross feross commented Feb 21, 2015

That's not supported yet, sorry. See: #202

@lock lock bot locked as resolved and limited conversation to collaborators May 6, 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.