mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 21:23:58 +01:00
hs: Improve warning for bad service version
Now that we don't have version 2, it gives us: [warn] HiddenServiceVersion must be between 3 and 3, not 2. This commit changes it to: [warn] HiddenServiceVersion must be 3, not 2. Part of #40476 Signed-off-by: David Goulet <dgoulet@torproject.org>
This commit is contained in:
parent
2a4a0c9012
commit
db297a177e
@ -179,8 +179,12 @@ static bool
|
|||||||
check_value_oob(int i, const char *name, int low, int high)
|
check_value_oob(int i, const char *name, int low, int high)
|
||||||
{
|
{
|
||||||
if (i < low || i > high) {
|
if (i < low || i > high) {
|
||||||
log_warn(LD_CONFIG, "%s must be between %d and %d, not %d.",
|
if (low == high) {
|
||||||
name, low, high, i);
|
log_warn(LD_CONFIG, "%s must be %d, not %d.", name, low, i);
|
||||||
|
} else {
|
||||||
|
log_warn(LD_CONFIG, "%s must be between %d and %d, not %d.",
|
||||||
|
name, low, high, i);
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user