mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-28 14:23:30 +01:00
Add opt hibernating; fix bug 78
svn:r3807
This commit is contained in:
parent
76a03e8635
commit
f5989afde2
@ -812,7 +812,7 @@ int router_dump_router_to_string(char *s, size_t maxlen, routerinfo_t *router,
|
|||||||
"opt uptime %ld\n"
|
"opt uptime %ld\n"
|
||||||
"bandwidth %d %d %d\n"
|
"bandwidth %d %d %d\n"
|
||||||
"onion-key\n%s"
|
"onion-key\n%s"
|
||||||
"signing-key\n%s%s%s",
|
"signing-key\n%s%s%s%s",
|
||||||
router->nickname,
|
router->nickname,
|
||||||
router->address,
|
router->address,
|
||||||
router->or_port,
|
router->or_port,
|
||||||
@ -825,7 +825,8 @@ int router_dump_router_to_string(char *s, size_t maxlen, routerinfo_t *router,
|
|||||||
(int) router->bandwidthburst,
|
(int) router->bandwidthburst,
|
||||||
(int) router->bandwidthcapacity,
|
(int) router->bandwidthcapacity,
|
||||||
onion_pkey, identity_pkey,
|
onion_pkey, identity_pkey,
|
||||||
family_line, bandwidth_usage);
|
family_line, bandwidth_usage,
|
||||||
|
we_are_hibernating() ? "opt hibernating 1\n" : "");
|
||||||
tor_free(family_line);
|
tor_free(family_line);
|
||||||
tor_free(onion_pkey);
|
tor_free(onion_pkey);
|
||||||
tor_free(identity_pkey);
|
tor_free(identity_pkey);
|
||||||
|
Loading…
Reference in New Issue
Block a user