Browse Source

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.
tags/debian/1.7.0_alpha1
David Kalnischkies 3 years ago
parent
commit
b0283a5aee
13 changed files with 28 additions and 28 deletions
  1. +1
    -1
      doc/apt-transport-http.1.xml
  2. +1
    -1
      doc/apt-transport-https.1.xml
  3. +2
    -2
      doc/po/apt-doc.pot
  4. +4
    -4
      doc/po/de.po
  5. +2
    -2
      doc/po/es.po
  6. +5
    -5
      doc/po/fr.po
  7. +2
    -2
      doc/po/it.po
  8. +2
    -2
      doc/po/ja.po
  9. +2
    -2
      doc/po/nl.po
  10. +2
    -2
      doc/po/pl.po
  11. +2
    -2
      doc/po/pt.po
  12. +2
    -2
      doc/po/pt_BR.po
  13. +1
    -1
      methods/basehttp.cc

+ 1
- 1
doc/apt-transport-http.1.xml View File

@@ -112,7 +112,7 @@ negotiation.</para>
<literallayout>
Acquire::http {
Proxy::example.org "DIRECT";
Proxy "socks5h://apt:pass@localhost:9050";
Proxy "socks5h://apt:pass@127.0.0.1:9050";
Proxy-Auto-Detect "/usr/local/bin/apt-http-proxy-auto-detect";
No-Cache "true";
Max-Age "3600";


+ 1
- 1
doc/apt-transport-https.1.xml View File

@@ -100,7 +100,7 @@ In practice the use of the host-specific variants of both options is highly reco
<literallayout>
Acquire::https {
Proxy::example.org "DIRECT";
Proxy "socks5h://apt:pass@localhost:9050";
Proxy "socks5h://apt:pass@127.0.0.1:9050";
Proxy-Auto-Detect "/usr/local/bin/apt-https-proxy-auto-detect";
No-Cache "true";
Max-Age "3600";


+ 2
- 2
doc/po/apt-doc.pot View File

@@ -7217,7 +7217,7 @@ msgstr ""
msgid ""
"Acquire::http {\n"
"\tProxy::example.org \"DIRECT\";\n"
"\tProxy \"socks5h://apt:pass@localhost:9050\";\n"
"\tProxy \"socks5h://apt:pass@127.0.0.1:9050\";\n"
"\tProxy-Auto-Detect \"/usr/local/bin/apt-http-proxy-auto-detect\";\n"
"\tNo-Cache \"true\";\n"
"\tMax-Age \"3600\";\n"
@@ -7361,7 +7361,7 @@ msgstr ""
msgid ""
"Acquire::https {\n"
"\tProxy::example.org \"DIRECT\";\n"
"\tProxy \"socks5h://apt:pass@localhost:9050\";\n"
"\tProxy \"socks5h://apt:pass@127.0.0.1:9050\";\n"
"\tProxy-Auto-Detect \"/usr/local/bin/apt-https-proxy-auto-detect\";\n"
"\tNo-Cache \"true\";\n"
"\tMax-Age \"3600\";\n"


+ 4
- 4
doc/po/de.po View File

@@ -10310,7 +10310,7 @@ msgstr ""
msgid ""
"Acquire::http {\n"
"\tProxy::example.org \"DIRECT\";\n"
"\tProxy \"socks5h://apt:pass@localhost:9050\";\n"
"\tProxy \"socks5h://apt:pass@127.0.0.1:9050\";\n"
"\tProxy-Auto-Detect \"/usr/local/bin/apt-http-proxy-auto-detect\";\n"
"\tNo-Cache \"true\";\n"
"\tMax-Age \"3600\";\n"
@@ -10325,7 +10325,7 @@ msgid ""
msgstr ""
"Acquire::http {\n"
"\tProxy::example.org \"DIRECT\";\n"
"\tProxy \"socks5h://apt:pass@localhost:9050\";\n"
"\tProxy \"socks5h://apt:pass@127.0.0.1:9050\";\n"
"\tProxy-Auto-Detect \"/usr/local/bin/apt-http-proxy-auto-detect\";\n"
"\tNo-Cache \"true\";\n"
"\tMax-Age \"3600\";\n"
@@ -10538,7 +10538,7 @@ msgstr ""
msgid ""
"Acquire::https {\n"
"\tProxy::example.org \"DIRECT\";\n"
"\tProxy \"socks5h://apt:pass@localhost:9050\";\n"
"\tProxy \"socks5h://apt:pass@127.0.0.1:9050\";\n"
"\tProxy-Auto-Detect \"/usr/local/bin/apt-https-proxy-auto-detect\";\n"
"\tNo-Cache \"true\";\n"
"\tMax-Age \"3600\";\n"
@@ -10560,7 +10560,7 @@ msgid ""
msgstr ""
"Acquire::https {\n"
"\tProxy::example.org \"DIRECT\";\n"
"\tProxy \"socks5h://apt:pass@localhost:9050\";\n"
"\tProxy \"socks5h://apt:pass@127.0.0.1:9050\";\n"
"\tProxy-Auto-Detect \"/usr/local/bin/apt-https-proxy-auto-detect\";\n"
"\tNo-Cache \"true\";\n"
"\tMax-Age \"3600\";\n"


+ 2
- 2
doc/po/es.po View File

@@ -10062,7 +10062,7 @@ msgstr ""
msgid ""
"Acquire::http {\n"
"\tProxy::example.org \"DIRECT\";\n"
"\tProxy \"socks5h://apt:pass@localhost:9050\";\n"
"\tProxy \"socks5h://apt:pass@127.0.0.1:9050\";\n"
"\tProxy-Auto-Detect \"/usr/local/bin/apt-http-proxy-auto-detect\";\n"
"\tNo-Cache \"true\";\n"
"\tMax-Age \"3600\";\n"
@@ -10207,7 +10207,7 @@ msgstr ""
msgid ""
"Acquire::https {\n"
"\tProxy::example.org \"DIRECT\";\n"
"\tProxy \"socks5h://apt:pass@localhost:9050\";\n"
"\tProxy \"socks5h://apt:pass@127.0.0.1:9050\";\n"
"\tProxy-Auto-Detect \"/usr/local/bin/apt-https-proxy-auto-detect\";\n"
"\tNo-Cache \"true\";\n"
"\tMax-Age \"3600\";\n"


+ 5
- 5
doc/po/fr.po View File

@@ -10285,7 +10285,7 @@ msgstr ""
msgid ""
"Acquire::http {\n"
"\tProxy::example.org \"DIRECT\";\n"
"\tProxy \"socks5h://apt:pass@localhost:9050\";\n"
"\tProxy \"socks5h://apt:pass@127.0.0.1:9050\";\n"
"\tProxy-Auto-Detect \"/usr/local/bin/apt-http-proxy-auto-detect\";\n"
"\tNo-Cache \"true\";\n"
"\tMax-Age \"3600\";\n"
@@ -10300,7 +10300,7 @@ msgid ""
msgstr ""
"Acquire::http {\n"
"\tProxy::example.org \"DIRECT\";\n"
"\tProxy \"socks5h://apt:pass@localhost:9050\";\n"
"\tProxy \"socks5h://apt:pass@127.0.0.1:9050\";\n"
"\tProxy-Auto-Detect \"/usr/local/bin/apt-http-proxy-auto-detect\";\n"
"\tNo-Cache \"true\";\n"
"\tMax-Age \"3600\";\n"
@@ -10509,7 +10509,7 @@ msgstr ""
#| msgid ""
#| "acquire::https {\n"
#| "\tproxy::example.org \"direct\";\n"
#| "\tproxy \"socks5h://apt:pass@localhost:9050\";\n"
#| "\tproxy \"socks5h://apt:pass@127.0.0.1:9050\";\n"
#| "\tproxy-auto-detect \"/usr/local/bin/apt-https-proxy-auto-detect\";\n"
#| "\tno-cache \"true\";\n"
#| "\tmax-age \"3600\";\n"
@@ -10531,7 +10531,7 @@ msgstr ""
msgid ""
"Acquire::https {\n"
"\tProxy::example.org \"DIRECT\";\n"
"\tProxy \"socks5h://apt:pass@localhost:9050\";\n"
"\tProxy \"socks5h://apt:pass@127.0.0.1:9050\";\n"
"\tProxy-Auto-Detect \"/usr/local/bin/apt-https-proxy-auto-detect\";\n"
"\tNo-Cache \"true\";\n"
"\tMax-Age \"3600\";\n"
@@ -10553,7 +10553,7 @@ msgid ""
msgstr ""
"acquire::https {\n"
"\tproxy::example.org \"direct\";\n"
"\tproxy \"socks5h://apt:pass@localhost:9050\";\n"
"\tproxy \"socks5h://apt:pass@127.0.0.1:9050\";\n"
"\tproxy-auto-detect \"/usr/local/bin/apt-https-proxy-auto-detect\";\n"
"\tno-cache \"true\";\n"
"\tmax-age \"3600\";\n"


+ 2
- 2
doc/po/it.po View File

@@ -10219,7 +10219,7 @@ msgstr ""
msgid ""
"Acquire::http {\n"
"\tProxy::example.org \"DIRECT\";\n"
"\tProxy \"socks5h://apt:pass@localhost:9050\";\n"
"\tProxy \"socks5h://apt:pass@127.0.0.1:9050\";\n"
"\tProxy-Auto-Detect \"/usr/local/bin/apt-http-proxy-auto-detect\";\n"
"\tNo-Cache \"true\";\n"
"\tMax-Age \"3600\";\n"
@@ -10364,7 +10364,7 @@ msgstr ""
msgid ""
"Acquire::https {\n"
"\tProxy::example.org \"DIRECT\";\n"
"\tProxy \"socks5h://apt:pass@localhost:9050\";\n"
"\tProxy \"socks5h://apt:pass@127.0.0.1:9050\";\n"
"\tProxy-Auto-Detect \"/usr/local/bin/apt-https-proxy-auto-detect\";\n"
"\tNo-Cache \"true\";\n"
"\tMax-Age \"3600\";\n"


+ 2
- 2
doc/po/ja.po View File

@@ -9832,7 +9832,7 @@ msgstr ""
msgid ""
"Acquire::http {\n"
"\tProxy::example.org \"DIRECT\";\n"
"\tProxy \"socks5h://apt:pass@localhost:9050\";\n"
"\tProxy \"socks5h://apt:pass@127.0.0.1:9050\";\n"
"\tProxy-Auto-Detect \"/usr/local/bin/apt-http-proxy-auto-detect\";\n"
"\tNo-Cache \"true\";\n"
"\tMax-Age \"3600\";\n"
@@ -9977,7 +9977,7 @@ msgstr ""
msgid ""
"Acquire::https {\n"
"\tProxy::example.org \"DIRECT\";\n"
"\tProxy \"socks5h://apt:pass@localhost:9050\";\n"
"\tProxy \"socks5h://apt:pass@127.0.0.1:9050\";\n"
"\tProxy-Auto-Detect \"/usr/local/bin/apt-https-proxy-auto-detect\";\n"
"\tNo-Cache \"true\";\n"
"\tMax-Age \"3600\";\n"


+ 2
- 2
doc/po/nl.po View File

@@ -10455,7 +10455,7 @@ msgstr ""
msgid ""
"Acquire::http {\n"
"\tProxy::example.org \"DIRECT\";\n"
"\tProxy \"socks5h://apt:pass@localhost:9050\";\n"
"\tProxy \"socks5h://apt:pass@127.0.0.1:9050\";\n"
"\tProxy-Auto-Detect \"/usr/local/bin/apt-http-proxy-auto-detect\";\n"
"\tNo-Cache \"true\";\n"
"\tMax-Age \"3600\";\n"
@@ -10600,7 +10600,7 @@ msgstr ""
msgid ""
"Acquire::https {\n"
"\tProxy::example.org \"DIRECT\";\n"
"\tProxy \"socks5h://apt:pass@localhost:9050\";\n"
"\tProxy \"socks5h://apt:pass@127.0.0.1:9050\";\n"
"\tProxy-Auto-Detect \"/usr/local/bin/apt-https-proxy-auto-detect\";\n"
"\tNo-Cache \"true\";\n"
"\tMax-Age \"3600\";\n"


+ 2
- 2
doc/po/pl.po View File

@@ -9218,7 +9218,7 @@ msgstr ""
msgid ""
"Acquire::http {\n"
"\tProxy::example.org \"DIRECT\";\n"
"\tProxy \"socks5h://apt:pass@localhost:9050\";\n"
"\tProxy \"socks5h://apt:pass@127.0.0.1:9050\";\n"
"\tProxy-Auto-Detect \"/usr/local/bin/apt-http-proxy-auto-detect\";\n"
"\tNo-Cache \"true\";\n"
"\tMax-Age \"3600\";\n"
@@ -9364,7 +9364,7 @@ msgstr ""
msgid ""
"Acquire::https {\n"
"\tProxy::example.org \"DIRECT\";\n"
"\tProxy \"socks5h://apt:pass@localhost:9050\";\n"
"\tProxy \"socks5h://apt:pass@127.0.0.1:9050\";\n"
"\tProxy-Auto-Detect \"/usr/local/bin/apt-https-proxy-auto-detect\";\n"
"\tNo-Cache \"true\";\n"
"\tMax-Age \"3600\";\n"


+ 2
- 2
doc/po/pt.po View File

@@ -9998,7 +9998,7 @@ msgstr ""
msgid ""
"Acquire::http {\n"
"\tProxy::example.org \"DIRECT\";\n"
"\tProxy \"socks5h://apt:pass@localhost:9050\";\n"
"\tProxy \"socks5h://apt:pass@127.0.0.1:9050\";\n"
"\tProxy-Auto-Detect \"/usr/local/bin/apt-http-proxy-auto-detect\";\n"
"\tNo-Cache \"true\";\n"
"\tMax-Age \"3600\";\n"
@@ -10143,7 +10143,7 @@ msgstr ""
msgid ""
"Acquire::https {\n"
"\tProxy::example.org \"DIRECT\";\n"
"\tProxy \"socks5h://apt:pass@localhost:9050\";\n"
"\tProxy \"socks5h://apt:pass@127.0.0.1:9050\";\n"
"\tProxy-Auto-Detect \"/usr/local/bin/apt-https-proxy-auto-detect\";\n"
"\tNo-Cache \"true\";\n"
"\tMax-Age \"3600\";\n"


+ 2
- 2
doc/po/pt_BR.po View File

@@ -7539,7 +7539,7 @@ msgstr ""
msgid ""
"Acquire::http {\n"
"\tProxy::example.org \"DIRECT\";\n"
"\tProxy \"socks5h://apt:pass@localhost:9050\";\n"
"\tProxy \"socks5h://apt:pass@127.0.0.1:9050\";\n"
"\tProxy-Auto-Detect \"/usr/local/bin/apt-http-proxy-auto-detect\";\n"
"\tNo-Cache \"true\";\n"
"\tMax-Age \"3600\";\n"
@@ -7684,7 +7684,7 @@ msgstr ""
msgid ""
"Acquire::https {\n"
"\tProxy::example.org \"DIRECT\";\n"
"\tProxy \"socks5h://apt:pass@localhost:9050\";\n"
"\tProxy \"socks5h://apt:pass@127.0.0.1:9050\";\n"
"\tProxy-Auto-Detect \"/usr/local/bin/apt-https-proxy-auto-detect\";\n"
"\tNo-Cache \"true\";\n"
"\tMax-Age \"3600\";\n"


+ 1
- 1
methods/basehttp.cc View File

@@ -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;
}
/*}}}*/


Loading…
Cancel
Save