diff options
author | Nick Mathewson <nickm@torproject.org> | 2013-08-25 00:29:49 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2013-08-25 00:29:49 -0400 |
commit | 1ee1c8fb4fc2e4855dba4387a58162656b5b9f0f (patch) | |
tree | 98f26e42162aab769d1442d7b5ddcd88280c1f20 /src | |
parent | 3727a978b8ca5015c1d684a0151002cd70ab3426 (diff) | |
parent | b9f9110ac77876b0c8c4fda19b6bb138e60da655 (diff) | |
download | tor-1ee1c8fb4fc2e4855dba4387a58162656b5b9f0f.tar.gz tor-1ee1c8fb4fc2e4855dba4387a58162656b5b9f0f.zip |
Merge remote-tracking branch 'public/bug9366' into maint-0.2.4
Diffstat (limited to 'src')
-rw-r--r-- | src/or/config.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/or/config.c b/src/or/config.c index 793fd557a3..4e08f3c3a5 100644 --- a/src/or/config.c +++ b/src/or/config.c @@ -5519,6 +5519,13 @@ check_server_ports(const smartlist_t *ports, "listening on one."); r = -1; } + if (n_orport_listeners && !n_orport_advertised) { + log_warn(LD_CONFIG, "We are listening on an ORPort, but not advertising " + "any ORPorts. This will keep us from building a %s " + "descriptor, and make us impossible to use.", + options->BridgeRelay ? "bridge" : "router"); + r = -1; + } if (n_dirport_advertised && !n_dirport_listeners) { log_warn(LD_CONFIG, "We are advertising a DirPort, but not actually " "listening on one."); |