Skip to content

Send upload_only header as an integer, not a string

Jack Hill requested to merge work/jackh/bep21 into master

As per BEP 21: http://bittorrent.org/beps/bep_0021.html

To test with WireShark:

  • Launch wireshark
  • Start capturing your main interface (e.g. wlp6s0 for me)
  • Filter the display for your KTorrent port, packets coming from your local ip address, and packets containing "upload_only" (e.g. udp.port == 6881 && ip.src == 192.168.AA.BB && frame matches "(?i)upload_only" for me)
  • Start KTorrent
  • In WireShark open a packet and look for the upload_only item

Previous result: 11:upload_only1:0

New result: 11:upload_onlyi1e

BUG: 394496

Merge request reports