소스 검색

Send long URLs when requesting ordinary server descriptors too.

Nick Mathewson 9 년 전
부모
커밋
6523eff9b3
1개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  1. 4 1
      src/or/routerlist.c

+ 4 - 1
src/or/routerlist.c

@@ -4369,7 +4369,10 @@ max_dl_per_request(const or_options_t *options, int purpose)
 {
   int max = 96;
   if (purpose == DIR_PURPOSE_FETCH_MICRODESC) {
-    max = options->TunnelDirConns ? 1000 : 92;
+    max = 92;
+  }
+  if (options->TunnelDirConns) {
+    max = 1000;
   }
   return max;
 }