mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-23 20:03:31 +01:00
Merge branch 'eol-config-no-spurious-warn' into 'main'
don't warn for empty RecommendedServerVersion Closes #40888 See merge request tpo/core/tor!787
This commit is contained in:
commit
45c1a36acb
@ -471,7 +471,7 @@ dirauth_options_validate(const void *arg, char **msg)
|
|||||||
smartlist_split_string(version_sl, recommended_versions, ",",
|
smartlist_split_string(version_sl, recommended_versions, ",",
|
||||||
SPLIT_SKIP_SPACE, 0);
|
SPLIT_SKIP_SPACE, 0);
|
||||||
SMARTLIST_FOREACH_BEGIN(version_sl, const char *, version) {
|
SMARTLIST_FOREACH_BEGIN(version_sl, const char *, version) {
|
||||||
if (tor_version_parse(version,
|
if (version[0] != '\0' && tor_version_parse(version,
|
||||||
&recommended_version) != 0) {
|
&recommended_version) != 0) {
|
||||||
COMPLAIN("Found unparseable version in RecommendedServerVersions");
|
COMPLAIN("Found unparseable version in RecommendedServerVersions");
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
Reference in New Issue
Block a user