summaryrefslogtreecommitdiff
path: root/methods
diff options
context:
space:
mode:
authorDavid Kalnischkies <david@kalnischkies.de>2018-05-11 14:51:50 +0200
committerDavid Kalnischkies <david@kalnischkies.de>2018-05-11 14:51:50 +0200
commitb0283a5aeee428c9f2567b81ae78c9da68f6f4af (patch)
tree10ed4a3e6ed6c9d05a942528d382d3dbc800030a /methods
parent5935ef0d212c588547f10031192ddee3418dfe7b (diff)
downloadapt-b0283a5aeee428c9f2567b81ae78c9da68f6f4af.tar.gz
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.
Diffstat (limited to 'methods')
-rw-r--r--methods/basehttp.cc2
1 files changed, 1 insertions, 1 deletions
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;
}
/*}}}*/