瀏覽代碼

write down our "how to have two defaults for dirfetchperiod"
issue, so we don't forget about it.


svn:r3040

Roger Dingledine 21 年之前
父節點
當前提交
19ada3f7fa
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      src/or/config.c

+ 3 - 1
src/or/config.c

@@ -105,7 +105,9 @@ static config_var_t config_vars[] = {
   VAR("DataDirectory",       STRING,   DataDirectory,        NULL),
   VAR("DirPort",             UINT,     DirPort,              "0"),
   VAR("DirBindAddress",      LINELIST, DirBindAddress,       NULL),
-  VAR("DirFetchPeriod",      INTERVAL, DirFetchPeriod,       "1 hours"),
+/* XXX we'd like dirfetchperiod to be higher for people with dirport not
+ * set, but low for people with dirport set. how to have two defaults? */
+  VAR("DirFetchPeriod",      INTERVAL, DirFetchPeriod,       "1 hour"),
   VAR("DirPostPeriod",       INTERVAL, DirPostPeriod,        "20 minutes"),
   VAR("RendPostPeriod",      INTERVAL, RendPostPeriod,       "20 minutes"),
   VAR("DirPolicy",           LINELIST, DirPolicy,            NULL),