summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Retout <tim@retout.co.uk>2014-07-18 17:58:31 +0100
committerTim Retout <tim@retout.co.uk>2014-07-18 18:34:36 +0100
commit511fb0f0b5b0bf6c83c91a84633a22ae1c7cddf6 (patch)
tree6066fcb7804c7b802361b3a51fa26bae1b3fe438
parent211d209cfb4fb463a15dcd74003ee67c7b6ecf26 (diff)
tor.cc: Hardcode useragent to constant string
-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",