mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-28 06:13:31 +01:00
don't upload your descriptor if rebuilding it failed
svn:r4352
This commit is contained in:
parent
8b2a7ff9fe
commit
9ed7b53143
@ -162,7 +162,7 @@
|
|||||||
/** How long do we keep DNS cache entries before purging them? */
|
/** How long do we keep DNS cache entries before purging them? */
|
||||||
#define MAX_DNS_ENTRY_AGE (150*60)
|
#define MAX_DNS_ENTRY_AGE (150*60)
|
||||||
#else
|
#else
|
||||||
#define MAX_DNS_ENTRY_AGE (15*60)
|
#define MAX_DNS_ENTRY_AGE (30*60)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/** How often do we rotate onion keys? */
|
/** How often do we rotate onion keys? */
|
||||||
|
@ -500,7 +500,7 @@ static int decide_if_publishable_server(time_t now) {
|
|||||||
void consider_publishable_server(time_t now, int force) {
|
void consider_publishable_server(time_t now, int force) {
|
||||||
if (decide_if_publishable_server(now)) {
|
if (decide_if_publishable_server(now)) {
|
||||||
set_server_advertised(1);
|
set_server_advertised(1);
|
||||||
router_rebuild_descriptor(force);
|
if (router_rebuild_descriptor(force) == 0)
|
||||||
router_upload_dir_desc_to_dirservers(force);
|
router_upload_dir_desc_to_dirservers(force);
|
||||||
} else {
|
} else {
|
||||||
set_server_advertised(0);
|
set_server_advertised(0);
|
||||||
|
Loading…
Reference in New Issue
Block a user