summaryrefslogtreecommitdiff
path: root/src/or/router.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2005-06-09 21:23:54 +0000
committerRoger Dingledine <arma@torproject.org>2005-06-09 21:23:54 +0000
commitb349e6054380c4148e57fc6484ed5333fb5c31e1 (patch)
tree5ef0de00b640d3c4621d2f7516b182695d9d6620 /src/or/router.c
parent00b75791c46be0ce91380b565e856a3d4779b07a (diff)
downloadtor-b349e6054380c4148e57fc6484ed5333fb5c31e1.tar.gz
tor-b349e6054380c4148e57fc6484ed5333fb5c31e1.zip
don't tell people you're publishing the server descriptor if you're
actually not. svn:r4387
Diffstat (limited to 'src/or/router.c')
-rw-r--r--src/or/router.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/router.c b/src/or/router.c
index 32f6e5af9a..5b99de4ffd 100644
--- a/src/or/router.c
+++ b/src/or/router.c
@@ -414,7 +414,8 @@ void consider_testing_reachability(void) {
void router_orport_found_reachable(void) {
if (!can_reach_or_port) {
if (!clique_mode(get_options()))
- log(LOG_NOTICE,"Your ORPort is reachable from the outside. Excellent. Publishing server descriptor.");
+ log(LOG_NOTICE,"Your ORPort is reachable from the outside. Excellent.%s",
+ get_options()->NoPublish ? "" : " Publishing server descriptor.");
can_reach_or_port = 1;
consider_publishable_server(time(NULL), 1);
}