diff options
author | David Goulet <dgoulet@torproject.org> | 2018-02-08 09:42:26 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-02-13 08:47:42 -0500 |
commit | e658dad625ef15f3a74a76aadf382d43c4ef44d1 (patch) | |
tree | 8a9c57bb6978974641bbcab3235e1ab2545a6bc5 /src/or/dirserv.c | |
parent | e91bae66d88a863970658174f8734b303042a161 (diff) | |
download | tor-e658dad625ef15f3a74a76aadf382d43c4ef44d1.tar.gz tor-e658dad625ef15f3a74a76aadf382d43c4ef44d1.zip |
dirserv: Improve returned message when relay is rejected
Explicitly inform the operator of the rejected relay to set a valid email
address in the ContactInfo field and contact bad-relays@ mailing list.
Fixes #25170
Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/or/dirserv.c')
-rw-r--r-- | src/or/dirserv.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/or/dirserv.c b/src/or/dirserv.c index da34c196f4..41c6bf3dc8 100644 --- a/src/or/dirserv.c +++ b/src/or/dirserv.c @@ -401,7 +401,10 @@ dirserv_get_status_impl(const char *id_digest, const char *nickname, if (result & FP_REJECT) { if (msg) - *msg = "Fingerprint is marked rejected -- please contact us?"; + *msg = "Fingerprint is marked rejected -- if you think this is a " + "mistake please set a valid email address in ContactInfo and " + "send an email to bad-relays@lists.torproject.org mentioning " + "your fingerprint(s)?"; return FP_REJECT; } else if (result & FP_INVALID) { if (msg) @@ -419,7 +422,10 @@ dirserv_get_status_impl(const char *id_digest, const char *nickname, log_fn(severity, LD_DIRSERV, "Rejecting '%s' because of address '%s'", nickname, fmt_addr32(addr)); if (msg) - *msg = "Suspicious relay address range -- please contact us?"; + *msg = "Suspicious relay address range -- if you think this is a " + "mistake please set a valid email address in ContactInfo and " + "send an email to bad-relays@lists.torproject.org mentioning " + "your address(es) and fingerprint(s)?"; return FP_REJECT; } if (!authdir_policy_valid_address(addr, or_port)) { |