summaryrefslogtreecommitdiff
path: root/src/DownloadEngine.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/DownloadEngine.cc')
-rw-r--r--src/DownloadEngine.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/DownloadEngine.cc b/src/DownloadEngine.cc
index 03250d6c..ba82fdee 100644
--- a/src/DownloadEngine.cc
+++ b/src/DownloadEngine.cc
@@ -313,10 +313,9 @@ std::string createSockPoolKey
key += util::percentEncode(username);
key += "@";
}
- key += host;
- key += fmt(":%u", port);
+ key += fmt("%s(%u)", host.c_str(), port);
if(!proxyhost.empty()) {
- key += fmt("/%s:%u", proxyhost.c_str(), proxyport);
+ key += fmt("/%s(%u)", proxyhost.c_str(), proxyport);
}
return key;
}