Преглед изворни кода

Make microdesc use off-by-default for now, since there are not enough caches

Nick Mathewson пре 14 година
родитељ
комит
85ddc76bf1
1 измењених фајлова са 6 додато и 0 уклоњено
  1. 6 0
      src/or/microdesc.c

+ 6 - 0
src/or/microdesc.c

@@ -658,8 +658,14 @@ we_use_microdescriptors_for_circuits(or_options_t *options)
   int ret = options->UseMicrodescriptors;
   int ret = options->UseMicrodescriptors;
   if (ret == -1) {
   if (ret == -1) {
     /* UseMicrodescriptors is "auto"; we need to decide: */
     /* UseMicrodescriptors is "auto"; we need to decide: */
+#if 0
     /* So we decide that we'll use microdescriptors iff we are not a server */
     /* So we decide that we'll use microdescriptors iff we are not a server */
     ret = ! server_mode(options);
     ret = ! server_mode(options);
+#else
+    /* We don't use microdescs for now: not enough caches are running
+     * 0.2.3.1-alpha */
+    ret = 0;
+#endif
   }
   }
   return ret;
   return ret;
 }
 }