mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-13 06:33:44 +01:00
Drop FallbackNetworkstatusFile; it never worked.
This commit is contained in:
parent
a8d491a8fd
commit
f742b33d85
@ -7,3 +7,7 @@
|
|||||||
of servers to try to get a consensus from when first connecting
|
of servers to try to get a consensus from when first connecting
|
||||||
to the Tor network, and thereby reduce load on the directory
|
to the Tor network, and thereby reduce load on the directory
|
||||||
authorities.
|
authorities.
|
||||||
|
|
||||||
|
o Removed features:
|
||||||
|
- Drop the old FallbackNetworkstatus option: we never got it working
|
||||||
|
well enough to use it.
|
||||||
|
@ -1129,12 +1129,6 @@ The following options are useful only for clients (that is, if
|
|||||||
regular router descriptors. Tor does not use this information for anything
|
regular router descriptors. Tor does not use this information for anything
|
||||||
itself; to save bandwidth, leave this option turned off. (Default: 0)
|
itself; to save bandwidth, leave this option turned off. (Default: 0)
|
||||||
|
|
||||||
**FallbackNetworkstatusFile** __FILENAME__::
|
|
||||||
If Tor doesn't have a cached networkstatus file, it starts out using this
|
|
||||||
one instead. Even if this file is out of date, Tor can still use it to
|
|
||||||
learn about directory mirrors, so it doesn't need to put load on the
|
|
||||||
authorities. (Default: None)
|
|
||||||
|
|
||||||
**WarnPlaintextPorts** __port__,__port__,__...__::
|
**WarnPlaintextPorts** __port__,__port__,__...__::
|
||||||
Tells Tor to issue a warnings whenever the user tries to make an anonymous
|
Tells Tor to issue a warnings whenever the user tries to make an anonymous
|
||||||
connection to one of these ports. This option is designed to alert users
|
connection to one of these ports. This option is designed to alert users
|
||||||
|
@ -231,12 +231,7 @@ static config_var_t option_vars_[] = {
|
|||||||
V(ExtraInfoStatistics, BOOL, "1"),
|
V(ExtraInfoStatistics, BOOL, "1"),
|
||||||
V(FallbackDir, LINELIST, NULL),
|
V(FallbackDir, LINELIST, NULL),
|
||||||
|
|
||||||
#if defined (WINCE)
|
OBSOLETE("FallbackNetworkstatusFile"),
|
||||||
V(FallbackNetworkstatusFile, FILENAME, "fallback-consensus"),
|
|
||||||
#else
|
|
||||||
V(FallbackNetworkstatusFile, FILENAME,
|
|
||||||
SHARE_DATADIR PATH_SEPARATOR "tor" PATH_SEPARATOR "fallback-consensus"),
|
|
||||||
#endif
|
|
||||||
V(FascistFirewall, BOOL, "0"),
|
V(FascistFirewall, BOOL, "0"),
|
||||||
V(FirewallPorts, CSV, ""),
|
V(FirewallPorts, CSV, ""),
|
||||||
V(FastFirstHopPK, BOOL, "1"),
|
V(FastFirstHopPK, BOOL, "1"),
|
||||||
|
@ -219,8 +219,6 @@ router_reload_consensus_networkstatus(void)
|
|||||||
{
|
{
|
||||||
char *filename;
|
char *filename;
|
||||||
char *s;
|
char *s;
|
||||||
struct stat st;
|
|
||||||
const or_options_t *options = get_options();
|
|
||||||
const unsigned int flags = NSSET_FROM_CACHE | NSSET_DONT_DOWNLOAD_CERTS;
|
const unsigned int flags = NSSET_FROM_CACHE | NSSET_DONT_DOWNLOAD_CERTS;
|
||||||
int flav;
|
int flav;
|
||||||
|
|
||||||
@ -263,25 +261,6 @@ router_reload_consensus_networkstatus(void)
|
|||||||
tor_free(filename);
|
tor_free(filename);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!current_consensus ||
|
|
||||||
(stat(options->FallbackNetworkstatusFile, &st)==0 &&
|
|
||||||
st.st_mtime > current_consensus->valid_after)) {
|
|
||||||
s = read_file_to_str(options->FallbackNetworkstatusFile,
|
|
||||||
RFTS_IGNORE_MISSING, NULL);
|
|
||||||
if (s) {
|
|
||||||
if (networkstatus_set_current_consensus(s, "ns",
|
|
||||||
flags|NSSET_ACCEPT_OBSOLETE)) {
|
|
||||||
log_info(LD_FS, "Couldn't load consensus networkstatus from \"%s\"",
|
|
||||||
options->FallbackNetworkstatusFile);
|
|
||||||
} else {
|
|
||||||
log_notice(LD_FS,
|
|
||||||
"Loaded fallback consensus networkstatus from \"%s\"",
|
|
||||||
options->FallbackNetworkstatusFile);
|
|
||||||
}
|
|
||||||
tor_free(s);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!current_consensus) {
|
if (!current_consensus) {
|
||||||
if (!named_server_map)
|
if (!named_server_map)
|
||||||
named_server_map = strmap_new();
|
named_server_map = strmap_new();
|
||||||
@ -1674,9 +1653,6 @@ networkstatus_set_current_consensus(const char *consensus,
|
|||||||
|
|
||||||
if (from_cache && !accept_obsolete &&
|
if (from_cache && !accept_obsolete &&
|
||||||
c->valid_until < now-OLD_ROUTER_DESC_MAX_AGE) {
|
c->valid_until < now-OLD_ROUTER_DESC_MAX_AGE) {
|
||||||
/* XXXX If we try to make fallbackconsensus work again, we should
|
|
||||||
* consider taking this out. Until then, believing obsolete consensuses
|
|
||||||
* is causing more harm than good. See also bug 887. */
|
|
||||||
log_info(LD_DIR, "Loaded an expired consensus. Discarding.");
|
log_info(LD_DIR, "Loaded an expired consensus. Discarding.");
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
|
@ -3702,10 +3702,6 @@ typedef struct {
|
|||||||
* of certain configuration options. */
|
* of certain configuration options. */
|
||||||
int TestingTorNetwork;
|
int TestingTorNetwork;
|
||||||
|
|
||||||
/** File to check for a consensus networkstatus, if we don't have one
|
|
||||||
* cached. */
|
|
||||||
char *FallbackNetworkstatusFile;
|
|
||||||
|
|
||||||
/** If true, and we have GeoIP data, and we're a bridge, keep a per-country
|
/** If true, and we have GeoIP data, and we're a bridge, keep a per-country
|
||||||
* count of how many client addresses have contacted us so that we can help
|
* count of how many client addresses have contacted us so that we can help
|
||||||
* the bridge authority guess which countries have blocked access to us. */
|
* the bridge authority guess which countries have blocked access to us. */
|
||||||
|
Loading…
Reference in New Issue
Block a user