mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-28 14:23:30 +01:00
if you ask for getinfo dir/status/ but your dirport is off,
log a complaint. svn:r6286
This commit is contained in:
parent
6fb27741ba
commit
dfb3c5f47a
@ -1506,8 +1506,10 @@ handle_getinfo_helper(const char *question, char **answer)
|
|||||||
smartlist_t *status_list;
|
smartlist_t *status_list;
|
||||||
size_t len;
|
size_t len;
|
||||||
char *cp;
|
char *cp;
|
||||||
if (!get_options()->DirPort)
|
if (!get_options()->DirPort) {
|
||||||
|
log_warn(LD_CONTROL, "getinfo dir/status/ requires an open dirport.");
|
||||||
return 0;
|
return 0;
|
||||||
|
}
|
||||||
status_list = smartlist_create();
|
status_list = smartlist_create();
|
||||||
dirserv_get_networkstatus_v2(status_list,
|
dirserv_get_networkstatus_v2(status_list,
|
||||||
question+strlen("dir/status/"));
|
question+strlen("dir/status/"));
|
||||||
|
Loading…
Reference in New Issue
Block a user