aboutsummaryrefslogtreecommitdiff
path: root/src/or/router.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2010-09-27 17:07:22 -0400
committerNick Mathewson <nickm@torproject.org>2010-09-27 17:07:22 -0400
commit6c5b9ba6258c8e79be9f96a3ec377600d0066356 (patch)
treed1d591092a397c36d6176889ec3580a9c6af467c /src/or/router.c
parentef5925237d4712c40fb6d69b8de882ab39e6798f (diff)
downloadtor-6c5b9ba6258c8e79be9f96a3ec377600d0066356.tar.gz
tor-6c5b9ba6258c8e79be9f96a3ec377600d0066356.zip
Change bug1751 enabling code based on comments from arma
Diffstat (limited to 'src/or/router.c')
-rw-r--r--src/or/router.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/or/router.c b/src/or/router.c
index 6ae2ed0db0..d30eb1bfa9 100644
--- a/src/or/router.c
+++ b/src/or/router.c
@@ -982,13 +982,10 @@ server_mode(or_options_t *options)
int
should_refuse_unknown_exits(or_options_t *options)
{
- networkstatus_t *consensus;
if (options->RefuseUnknownExits_ != -1) {
return options->RefuseUnknownExits_;
- } else if ((consensus = networkstatus_get_latest_consensus()) != NULL) {
- return networkstatus_get_param(consensus, "refuseunknownexits", 1);
} else {
- return 1;
+ return networkstatus_get_param(NULL, "refuseunknownexits", 1);
}
}