소스 검색

don't tell people you're publishing the server descriptor if you're
actually not.


svn:r4387

Roger Dingledine 20 년 전
부모
커밋
b349e60543
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      src/or/router.c

+ 2 - 1
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);
   }