aboutsummaryrefslogtreecommitdiff
path: root/src/core/or/connection_edge.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2019-09-18 15:48:25 -0400
committerNick Mathewson <nickm@torproject.org>2019-09-18 15:48:25 -0400
commit37c616aeaf21fc54a367361272e5f1fc84d4a508 (patch)
tree2c2d619aceb7f83be5a20bc9c877df869be33fda /src/core/or/connection_edge.c
parentd6d3e829dd20b78e2b80e52f0e3865a1002e653b (diff)
parentbf4a27c0eae79baff7f0ed4ebe12bda5e2ba06b6 (diff)
downloadtor-37c616aeaf21fc54a367361272e5f1fc84d4a508.tar.gz
tor-37c616aeaf21fc54a367361272e5f1fc84d4a508.zip
Merge branch 'bug31466_035' into bug31466_042
Diffstat (limited to 'src/core/or/connection_edge.c')
-rw-r--r--src/core/or/connection_edge.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/core/or/connection_edge.c b/src/core/or/connection_edge.c
index 40d3351a82..42111de32c 100644
--- a/src/core/or/connection_edge.c
+++ b/src/core/or/connection_edge.c
@@ -1611,8 +1611,10 @@ connection_ap_handshake_rewrite(entry_connection_t *conn,
* disallowed when they're coming straight from the client, but you're
* allowed to have them in MapAddress commands and so forth. */
if (!strcmpend(socks->address, ".exit")) {
- log_warn(LD_APP, "The \".exit\" notation is disabled in Tor due to "
- "security risks.");
+ static ratelim_t exit_warning_limit = RATELIM_INIT(60*15);
+ log_fn_ratelim(&exit_warning_limit, LOG_WARN, LD_APP,
+ "The \".exit\" notation is disabled in Tor due to "
+ "security risks.");
control_event_client_status(LOG_WARN, "SOCKS_BAD_HOSTNAME HOSTNAME=%s",
escaped(socks->address));
out->end_reason = END_STREAM_REASON_TORPROTOCOL;