diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/or/routerparse.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/or/routerparse.c b/src/or/routerparse.c index 14d16f62f..6e4da3e47 100644 --- a/src/or/routerparse.c +++ b/src/or/routerparse.c @@ -968,6 +968,15 @@ router_parse_entry_from_string(const char *s, const char *end) } } + if ((tok = find_first_by_keyword(tokens, K_HIBERNATING))) { + if (tok->n_args < 1) { + log_fn(LOG_WARN, "Too few args on 'hibernating' keyword. Skipping."); + } else { + router->is_hibernating + = (tor_parse_long(tok->args[0],10,0,LONG_MAX,NULL,NULL) != 0); + } + } + if (!(tok = find_first_by_keyword(tokens, K_PUBLISHED))) { log_fn(LOG_WARN, "Missing published time"); goto err; } |