소스 검색

get rid of the special case for 'testing' circuits

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

+ 1 - 2
src/or/circuitbuild.c

@@ -1494,8 +1494,7 @@ choose_good_entry_server(uint8_t purpose, cpath_build_state_t *state)
   smartlist_t *excluded = smartlist_create();
   or_options_t *options = get_options();
 
-  if (state && options->UseEntryNodes &&
-      purpose != CIRCUIT_PURPOSE_TESTING) {
+  if (state && options->UseEntryNodes) {
     return choose_random_entry(state);
   }