another msvc build fix

This commit is contained in:
Arvid Norberg 2009-09-06 07:23:01 +00:00
parent 6d01cb475c
commit f15cc7bd29
1 changed files with 5 additions and 9 deletions

View File

@ -138,9 +138,6 @@ namespace libtorrent
char str[1024];
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"
#ifndef TORRENT_DISABLE_ENCRYPTION
"%s"
#endif
, escape_string((const char*)&tracker_req().pid[0], 20).c_str()
// the i2p tracker seems to verify that the port is not 0,
// even though it ignores it otherwise
@ -149,13 +146,12 @@ namespace libtorrent
, tracker_req().downloaded
, tracker_req().left
, tracker_req().num_want
, tracker_req().key
#ifndef TORRENT_DISABLE_ENCRYPTION
, m_ses.get_pe_settings().in_enc_policy == pe_settings::disabled
? "" : "&supportcrypto=1"
#endif
);
, tracker_req().key);
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)
{