another msvc build fix
This commit is contained in:
parent
6d01cb475c
commit
f15cc7bd29
|
@ -138,9 +138,6 @@ namespace libtorrent
|
||||||
char str[1024];
|
char str[1024];
|
||||||
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
|
|
||||||
"%s"
|
|
||||||
#endif
|
|
||||||
, escape_string((const char*)&tracker_req().pid[0], 20).c_str()
|
, escape_string((const char*)&tracker_req().pid[0], 20).c_str()
|
||||||
// the i2p tracker seems to verify that the port is not 0,
|
// the i2p tracker seems to verify that the port is not 0,
|
||||||
// even though it ignores it otherwise
|
// even though it ignores it otherwise
|
||||||
|
@ -149,13 +146,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;
|
||||||
|
#ifndef TORRENT_DISABLE_ENCRYPTION
|
||||||
|
if (m_ses.get_pe_settings().in_enc_policy != pe_settings::disabled)
|
||||||
|
url += "&supportcrypto=1";
|
||||||
|
#endif
|
||||||
|
|
||||||
if (tracker_req().event != tracker_request::none)
|
if (tracker_req().event != tracker_request::none)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue