]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Make Tor2Web error message clearer
authorteor (Tim Wilson-Brown) <teor2345@gmail.com>
Thu, 31 Mar 2016 13:21:02 +0000 (00:21 +1100)
committerDavid Goulet <dgoulet@torproject.org>
Wed, 24 Aug 2016 18:40:54 +0000 (14:40 -0400)
Tor2Web refuses non-onion hostnames and IP addresses.

src/or/connection_edge.c

index ed8a1bbd0e11314fa4f00ff1e2f9fdc1e7904b81..15b521b34dccbd189c580f3432f958ca8557087a 100644 (file)
@@ -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;