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

if you ask for getinfo dir/status/ but your dirport is off,
log a complaint.


svn:r6286

Roger Dingledine пре 19 година
родитељ
комит
dfb3c5f47a
1 измењених фајлова са 3 додато и 1 уклоњено
  1. 3 1
      src/or/control.c

+ 3 - 1
src/or/control.c

@@ -1506,8 +1506,10 @@ handle_getinfo_helper(const char *question, char **answer)
     smartlist_t *status_list;
     size_t len;
     char *cp;
-    if (!get_options()->DirPort)
+    if (!get_options()->DirPort) {
+      log_warn(LD_CONTROL, "getinfo dir/status/ requires an open dirport.");
       return 0;
+    }
     status_list = smartlist_create();
     dirserv_get_networkstatus_v2(status_list,
                                  question+strlen("dir/status/"));