diff options
author | Roger Dingledine <arma@torproject.org> | 2006-02-19 22:02:02 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2006-02-19 22:02:02 +0000 |
commit | 6a52867846bcd0b2f9606037eeed2a5e0cd472b9 (patch) | |
tree | e518442d897131bc835b1e61fcfc5cb30c0be152 /src/or/rendservice.c | |
parent | c4f389420ca7b9afe502af50a7dcfc342f5a4f29 (diff) | |
download | tor-6a52867846bcd0b2f9606037eeed2a5e0cd472b9.tar.gz tor-6a52867846bcd0b2f9606037eeed2a5e0cd472b9.zip |
New config options to address bug 251:
FetchServerDescriptors and FetchHidServDescriptors for whether
to fetch server info and hidserv info or let the controller do it,
and also PublishServerDescriptor and PublishHidServDescriptors.
Add AllDirActionsPrivate undocumented option -- if you set it, you'll
need the controller to bootstrap you enough to build your first circuits.
svn:r6047
Diffstat (limited to 'src/or/rendservice.c')
-rw-r--r-- | src/or/rendservice.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/or/rendservice.c b/src/or/rendservice.c index 5124f93dba..4d783a5d25 100644 --- a/src/or/rendservice.c +++ b/src/or/rendservice.c @@ -1060,6 +1060,9 @@ rend_consider_services_upload(time_t now) rend_service_t *service; int rendpostperiod = get_options()->RendPostPeriod; + if (!get_options()->PublishHidServDescriptors) + return; + for (i=0; i < smartlist_len(rend_service_list); ++i) { service = smartlist_get(rend_service_list, i); if (!service->next_upload_time) { /* never been uploaded yet */ |