&supportcrypto=1 fix
This commit is contained in:
parent
92d594f5c3
commit
d5fc3ea422
|
@ -1,3 +1,4 @@
|
||||||
|
* fixed not passing &supportcrypto=1 when encryption is disabled
|
||||||
* introduced an upload mode, which torrents are switched into when
|
* introduced an upload mode, which torrents are switched into when
|
||||||
it hits a disk write error, instead of stopping the torrent.
|
it hits a disk write error, instead of stopping the torrent.
|
||||||
this lets libtorrent keep uploading the parts it has when it
|
this lets libtorrent keep uploading the parts it has when it
|
||||||
|
|
|
@ -122,7 +122,7 @@ namespace libtorrent
|
||||||
snprintf(str, sizeof(str), "&peer_id=%s&port=%d&uploaded=%lld"
|
snprintf(str, sizeof(str), "&peer_id=%s&port=%d&uploaded=%lld"
|
||||||
"&downloaded=%lld&left=%lld&compact=1&numwant=%d&key=%x&no_peer_id=1"
|
"&downloaded=%lld&left=%lld&compact=1&numwant=%d&key=%x&no_peer_id=1"
|
||||||
#ifndef TORRENT_DISABLE_ENCRYPTION
|
#ifndef TORRENT_DISABLE_ENCRYPTION
|
||||||
"&supportcrypto=1"
|
"%s"
|
||||||
#endif
|
#endif
|
||||||
, escape_string((const char*)&tracker_req().pid[0], 20).c_str()
|
, escape_string((const char*)&tracker_req().pid[0], 20).c_str()
|
||||||
, tracker_req().listen_port
|
, tracker_req().listen_port
|
||||||
|
@ -130,7 +130,12 @@ namespace libtorrent
|
||||||
, tracker_req().downloaded
|
, tracker_req().downloaded
|
||||||
, tracker_req().left
|
, tracker_req().left
|
||||||
, tracker_req().num_want
|
, tracker_req().num_want
|
||||||
, tracker_req().key);
|
, tracker_req().key
|
||||||
|
#ifndef TORRENT_DISABLE_ENCRYPTION
|
||||||
|
, m_ses.get_pe_settings().in_enc_policy == pe_settings::disabled
|
||||||
|
? "" : "&supportcrypto=1"
|
||||||
|
#endif
|
||||||
|
);
|
||||||
url += str;
|
url += str;
|
||||||
|
|
||||||
if (tracker_req().event != tracker_request::none)
|
if (tracker_req().event != tracker_request::none)
|
||||||
|
|
Loading…
Reference in New Issue