summaryrefslogtreecommitdiff
path: root/src/DefaultBtAnnounce.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/DefaultBtAnnounce.cc')
-rw-r--r--src/DefaultBtAnnounce.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/DefaultBtAnnounce.cc b/src/DefaultBtAnnounce.cc
index f5bbfd61..087af61f 100644
--- a/src/DefaultBtAnnounce.cc
+++ b/src/DefaultBtAnnounce.cc
@@ -170,14 +170,14 @@ std::string DefaultBtAnnounce::getAnnounceUrl()
util::percentEncode(bittorrent::getStaticPeerId(), PEER_ID_LENGTH)
.c_str());
if (tcpPort_) {
- uri += fmt("&port=%u", tcpPort_);
+ uri += fmt("port=%u&", tcpPort_);
}
uri += fmt("uploaded=%" PRId64 "&"
"downloaded=%" PRId64 "&"
"left=%" PRId64 "&"
"numwant=%d&"
"key=%x&"
- "compact=1&",
+ "compact=1",
stat.getSessionUploadLength(), stat.getSessionDownloadLength(), left,
numWant,
(unsigned int)httpAnnounceKey_);