Commit b101f4e9 authored by David Goulet's avatar David Goulet
Browse files

Control: getinfo entry-guards report down-since

If the guard unreachable_since variable was set, the status "up" was
reported which is wrong. This adds the "down" status followed by the
unreachable_since time value.

Fixes #14184

Signed-off-by: default avatarDavid Goulet <dgoulet@ev0ke.net>
parent e36faeec
o Minor bugfixes:
- On the control port, the "entry-guards" command was reporting an "up"
status for a relay that was actually down. This fix check if
"unreachable_since" is set and if so reports the "down" status. Fixes
bug 14184.
......@@ -1666,6 +1666,9 @@ getinfo_helper_entry_guards(control_connection_t *conn,
} else if (e->bad_since) {
when = e->bad_since;
status = "unusable";
} else if (e->unreachable_since) {
when = e->unreachable_since;
status = "down";
} else {
status = "up";
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment