aboutsummaryrefslogtreecommitdiff
path: root/src/app/config/config.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2021-03-24 10:19:21 -0400
committerNick Mathewson <nickm@torproject.org>2021-03-24 10:31:13 -0400
commitebb826f4a15c90d480bb5384facc9d05e13505ab (patch)
tree891ca04dfaf7ad0e588809c3c4a9e3013b93386c /src/app/config/config.c
parentdb14801b04dc27760c71ff6567c59c222459bfe6 (diff)
downloadtor-ebb826f4a15c90d480bb5384facc9d05e13505ab.tar.gz
tor-ebb826f4a15c90d480bb5384facc9d05e13505ab.zip
Add an extra prop330 test, and clarifying comments.
This test makes sure that we reject "upload=" URLs with bad IP addresses. Also, add a warning when we can't parse the address.
Diffstat (limited to 'src/app/config/config.c')
-rw-r--r--src/app/config/config.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/app/config/config.c b/src/app/config/config.c
index 395da5e66a..547662300d 100644
--- a/src/app/config/config.c
+++ b/src/app/config/config.c
@@ -5500,6 +5500,8 @@ parse_dirauth_dirport(dir_server_t *ds, const char *flag)
&dirport.addr, &dirport.port, -1);
if (ds != NULL && rv == 0) {
trusted_dir_server_add_dirport(ds, usage, &dirport);
+ } else if (rv == -1) {
+ log_warn(LD_CONFIG, "Unable to parse address in authority flag %s",flag);
}
tor_free(addr_string);