Explorar el Código

use shorter minimum key lifetime until 008 is dead

svn:r3035
Nick Mathewson hace 21 años
padre
commit
bec7a1c6e8
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      src/or/config.c

+ 2 - 1
src/or/config.c

@@ -1286,7 +1286,8 @@ options_validate(or_options_t *options)
 #define MIN_REND_POST_PERIOD 300
 #define MIN_STATUS_FETCH_PERIOD 60
 
-#define MAX_DIR_PERIOD (MIN_ONION_KEY_LIFETIME/2)
+  /* After 0.0.8 is dead, change this to MIN_ONION_KEY_LIFETIME. */
+#define MAX_DIR_PERIOD (OLD_MIN_ONION_KEY_LIFETIME/2)
 #define MAX_CACHE_DIR_FETCH_PERIOD 3600
 #define MAX_CACHE_STATUS_FETCH_PERIOD 900