From 511fb0f0b5b0bf6c83c91a84633a22ae1c7cddf6 Mon Sep 17 00:00:00 2001 From: Tim Retout Date: Fri, 18 Jul 2014 17:58:31 +0100 Subject: tor.cc: Hardcode useragent to constant string --- tor.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'tor.cc') 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", -- cgit v1.2.3-70-g09d2