mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-11 05:33:47 +01:00
Fix bug3183
This commit is contained in:
parent
c2d9d80a07
commit
ce3b553926
@ -85,10 +85,9 @@ log_heartbeat(time_t now)
|
|||||||
const node_t *myself;
|
const node_t *myself;
|
||||||
|
|
||||||
or_options_t *options = get_options();
|
or_options_t *options = get_options();
|
||||||
int is_server = server_mode(options);
|
|
||||||
(void)now;
|
(void)now;
|
||||||
|
|
||||||
if (is_server) {
|
if (public_server_mode(options)) {
|
||||||
/* Let's check if we are in the current cached consensus. */
|
/* Let's check if we are in the current cached consensus. */
|
||||||
if (!(me = router_get_my_routerinfo()))
|
if (!(me = router_get_my_routerinfo()))
|
||||||
return -1; /* Something stinks, we won't even attempt this. */
|
return -1; /* Something stinks, we won't even attempt this. */
|
||||||
|
Loading…
Reference in New Issue
Block a user