aboutsummaryrefslogtreecommitdiff
path: root/src/or
diff options
context:
space:
mode:
authorteor (Tim Wilson-Brown) <teor2345@gmail.com>2016-04-01 00:21:02 +1100
committerDavid Goulet <dgoulet@torproject.org>2016-08-24 14:40:54 -0400
commit45b4e63519eafe99297561d6d81aa18151191cec (patch)
treec56ff6c7a9063257e933ef803430c90ca1512c4e /src/or
parentf41ddbecc6eac7c0e27581dd4cbb485d61ef1dac (diff)
downloadtor-45b4e63519eafe99297561d6d81aa18151191cec.tar.gz
tor-45b4e63519eafe99297561d6d81aa18151191cec.zip
Make Tor2Web error message clearer
Tor2Web refuses non-onion hostnames and IP addresses.
Diffstat (limited to 'src/or')
-rw-r--r--src/or/connection_edge.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/connection_edge.c b/src/or/connection_edge.c
index ed8a1bbd0e..15b521b34d 100644
--- a/src/or/connection_edge.c
+++ b/src/or/connection_edge.c
@@ -1466,8 +1466,8 @@ connection_ap_handshake_rewrite_and_attach(entry_connection_t *conn,
/* If we're running in Tor2webMode, we don't allow anything BUT .onion
* addresses. */
if (options->Tor2webMode) {
- log_warn(LD_APP, "Refusing to connect to non-hidden-service hostname %s "
- "because tor2web mode is enabled.",
+ log_warn(LD_APP, "Refusing to connect to non-hidden-service hostname "
+ "or IP address %s because tor2web mode is enabled.",
safe_str_client(socks->address));
connection_mark_unattached_ap(conn, END_STREAM_REASON_ENTRYPOLICY);
return -1;