From b0283a5aeee428c9f2567b81ae78c9da68f6f4af Mon Sep 17 00:00:00 2001 From: David Kalnischkies Date: Fri, 11 May 2018 14:51:50 +0200 Subject: use 127.0.0.1 instead of localhost as default Tor proxy This shouldn't make a practical difference for most people, but for edge cases it avoids DNS lookups and additionally prevents us from perfoming unneeded SRV requests, too. --- methods/basehttp.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'methods') diff --git a/methods/basehttp.cc b/methods/basehttp.cc index 2473ecb5c..3a73d04c6 100644 --- a/methods/basehttp.cc +++ b/methods/basehttp.cc @@ -873,7 +873,7 @@ bool BaseHttpMethod::Configuration(std::string Message) /*{{{*/ return false; _config->CndSet("Acquire::tor::Proxy", - "socks5h://apt-transport-tor@localhost:9050"); + "socks5h://apt-transport-tor@127.0.0.1:9050"); return true; } /*}}}*/ -- cgit v1.2.3