Overhaul tracker keys in torrents and magnet links#494
Merged
josecelano merged 6 commits intotorrust:developfrom Feb 23, 2024
Merged
Overhaul tracker keys in torrents and magnet links#494josecelano merged 6 commits intotorrust:developfrom
josecelano merged 6 commits intotorrust:developfrom
Conversation
8cab267 to
10b3670
Compare
Member
Author
|
It's not easy to test this new behavior because the current test is using the "shared" env which uses a public tracker. I should run a second env with a private tracker but I think that's too complex. I would prefer to test this functionality with unit tests. The problem is the For the time being, I will test manually and remove the E2E test for the personal announce URL. |
10b3670 to
bc509f4
Compare
bc509f4 to
a67c39b
Compare
Tracker HTTP URL: http://localhost:7070 - announce: "http://localhost:7070". - announce_list: "http://localhost:7070" and keeps the original URLs in the uploaded torrent. Tracker UDP URL: udp://localhost:6969 - announce: "udp://localhost:7070". - announce_list: "udp://localhost:7070" and keeps the original URLs in the uploaded torrent. Tracker HTTP URL: http://localhost:7070 - announce: "http://localhost:7070/**KEY**". - announce_list: "http://localhost:7070/**KEY**" and keeps the original URLs in the uploaded torrent. Tracker UDP URL: udp://localhost:6969 - announce: "udp://localhost:7070/**KEY**". - announce_list: "udp://localhost:7070/**KEY**" and keeps the original URLs in the uploaded torrent. It returns an 505 error if it can't get the user's tracker keys. TODO: - The application should not start with close tracker and UDP url in the configuration. - The API should return 503 instead of 500 when it can't connect to the tracker.
…hen user tracker keys can't be generated
a67c39b to
c1fd866
Compare
…from magnet links
f2bea54 to
d100b5b
Compare
when the Index needs to make a request to the Tracker API and is not available.
…alid For the time being, it only checks that private tracker don't use UDP.
Member
Author
|
ACK 9b7c5c8 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Subtasks
Subtasks in the Index GUI