The Wayback Machine - https://web.archive.org/web/20201027185220/https://github.com/anacrolix/torrent/issues/395
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

cmd/torrent: -testPeer no longer accepts string names #395

Closed
yarikk opened this issue Apr 15, 2020 · 4 comments
Closed

cmd/torrent: -testPeer no longer accepts string names #395

yarikk opened this issue Apr 15, 2020 · 4 comments

Comments

@yarikk
Copy link
Contributor

@yarikk yarikk commented Apr 15, 2020

Since recently,

% torrent download -dht'=false' '-testPeer=seed:44444' -stats -seed x.torrent
tagflag: error parsing args: parsing flag "testPeer=seed:44444": parsing value "seed:44444" for flag "testPeer": parsing host "seed": error parsing IP

Not sure if the change is in right direction: since BEP3 allows "An optional parameter giving the IP (or dns name) which this peer is at. " in tracker announcements, shouldn't test peers allow that too?

@anacrolix
Copy link
Owner

@anacrolix anacrolix commented Apr 15, 2020

This is due to a change I made in tagflag. I found that resolving hostnames was stalling argument parsing, which led to really weird behavior sometimes. I think the solution is to accept a string if you want to resolve it manually, or if you prefer the old behaviour, downgrade tagflag slightly or propose a better way to handle this.

@anacrolix
Copy link
Owner

@anacrolix anacrolix commented Jun 24, 2020

Do you have any more feedback on this @yarikk? Can I close this?

@yarikk
Copy link
Contributor Author

@yarikk yarikk commented Jul 7, 2020

While it would be nice to have this consistent with what the net.Dial would accept, it's definitely not critical.

@anacrolix anacrolix closed this in fde583e Jul 10, 2020
@anacrolix
Copy link
Owner

@anacrolix anacrolix commented Jul 10, 2020

Should be fixed, let me know if you have any issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants
You can’t perform that action at this time.