Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upHTTP request with wrong infoHash #196
Comments
This comment has been minimized.
This comment has been minimized.
|
What version of webtorrent are you using? Please run |
This comment has been minimized.
This comment has been minimized.
|
Fresh install of webtorrent have the same issue:
Added versions to the main post |
This comment has been minimized.
This comment has been minimized.
|
@tnako When I looked at the output from your tcpdump and decode the info_hash, which is shown as: %a2%a1U7T**%2b**%22%92Z%d1%04%86%bfz%8b*%9cB%f0%d1 I get: a2 a1 55 37 54 2b 22 92 5a d1 04 86 bf 7a 8b 2a 9c 42 f0 d1 Which is correct! This means the correct http request is being made to the tracker server. I also confirmed that the correct request is made using a different tracker server (since the one in this torrent is down). It seems to me like |
This comment has been minimized.
This comment has been minimized.
|
Could there be a proxy server (like Apache or Nginx) in front of the tracker that is incorrectly converting %2b into a space character? |
This comment has been minimized.
This comment has been minimized.
|
This is interesting. On my local machine, the info_hash was actually: %a2%a1U7T+%22%92Z%d1%04%86%bfz%8b*%9cB%f0%d1 Note: the unescaped + and * characters. These should definitely be escaped, but aren't. This could definitely cause the bug you saw, and it shouldn't be happening. PR out to bittorrent-tracker to fix this: webtorrent/bittorrent-tracker#52 |
This comment has been minimized.
This comment has been minimized.
|
I believe this issue is fixed now. Released as 0.17.0. |
Hello. I have torrent file - https://github.com/tnako/DP/blob/master/my/liferace.torrent
That data cannot be downloaded. It cooked for local XBT.
If I started webtorrent, it send wrong infoHash to tracker server. For example, I use your cmd.js:
DEBUG=* node cmd.js liferace.torrent 2>&1 | grep a2a1553754It will give right infoHash:
But the same time
tcpdump -s 0 -A port 2710give me:With this info_hash i go to http://url-encode.online-domain-tools.com/ and make url decode, in hex it will be:
The error after a2a1553754, it must be 0x2b, not 0x20
Versions: