summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tor.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/tor.cc b/tor.cc
index 1df0a07..8406cba 100644
--- a/tor.cc
+++ b/tor.cc
@@ -205,10 +205,9 @@ bool TorMethod::Fetch(FetchItem *Itm)
curl_easy_setopt(curl, CURLOPT_MAX_RECV_SPEED_LARGE, dlLimit);
// set header
+ // Hardcoded so that all apt-transport-tor users look the same.
curl_easy_setopt(curl, CURLOPT_USERAGENT,
- _config->Find("Acquire::tor::User-Agent",
- _config->Find("Acquire::http::User-Agent",
- "Debian APT-CURL/1.0 (" PACKAGE_VERSION ")").c_str()).c_str());
+ "Debian APT-CURL/1.0 (0.1)");
// set timeout
int const timeout = _config->FindI("Acquire::tor::Timeout",