diff options
author | Tim Retout <tim@retout.co.uk> | 2014-07-18 17:58:31 +0100 |
---|---|---|
committer | Tim Retout <tim@retout.co.uk> | 2014-07-18 18:34:36 +0100 |
commit | 511fb0f0b5b0bf6c83c91a84633a22ae1c7cddf6 (patch) | |
tree | 6066fcb7804c7b802361b3a51fa26bae1b3fe438 | |
parent | 211d209cfb4fb463a15dcd74003ee67c7b6ecf26 (diff) |
tor.cc: Hardcode useragent to constant string
-rw-r--r-- | tor.cc | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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", |