From 16bca35eab81b13d6ec69acaf25e609bf663d037 Mon Sep 17 00:00:00 2001 From: Roger Dingledine Date: Sun, 31 May 2009 18:18:54 -0400 Subject: backport r19291, r19292, r19295, r19296: fix dynamic ip relay reachability --- src/or/directory.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/or/directory.c') diff --git a/src/or/directory.c b/src/or/directory.c index 46721e7fc8..9362c210c8 100644 --- a/src/or/directory.c +++ b/src/or/directory.c @@ -635,7 +635,8 @@ directory_command_should_use_begindir(or_options_t *options, uint32_t addr, return 0; /* We don't know an ORPort -- no chance. */ if (!anonymized_connection) if (!fascist_firewall_allows_address_or(addr, or_port) || - directory_fetches_from_authorities(options)) + directory_fetches_from_authorities(options) || + (server_mode(options) && !options->Address)) return 0; /* We're firewalled or are acting like a relay -- also no. */ if (!options->TunnelDirConns && router_purpose != ROUTER_PURPOSE_BRIDGE) -- cgit v1.2.3-54-g00ecf