]> Sergey Matveev's repositories - public-inbox.git/commitdiff
wwwstream: drop tor2web URL
authorEric Wong <e@80x24.org>
Sat, 4 May 2019 18:42:39 +0000 (18:42 +0000)
committerEric Wong <e@80x24.org>
Sat, 4 May 2019 18:42:39 +0000 (18:42 +0000)
It was a MITM hazard and been killed off by the DoS subsystem
last July: https://marc.info/?i=87d0vwwkbs.fsf@riseup.net

lib/PublicInbox/WwwStream.pm

index 8b79923b64efeab0946e18b1b3bf03094dd6a5fc..ea7aaad0a76024ec7a04adb75a84c9b913d15810 100644 (file)
@@ -12,7 +12,6 @@ use warnings;
 use PublicInbox::Hval qw(ascii_html);
 use URI;
 our $TOR_URL = 'https://www.torproject.org/';
-our $TOR2WEB_URL = 'https://www.tor2web.org/';
 our $CODE_URL = 'https://public-inbox.org/';
 our $PROJECT = 'public-inbox';
 
@@ -134,10 +133,6 @@ EOF
        if ($urls =~ m!\b[^:]+://\w+\.onion/!) {
                $urls .= "\n note: .onion URLs require Tor: ";
                $urls .= qq[<a\nhref="$TOR_URL">$TOR_URL</a>];
-               if ($TOR2WEB_URL) {
-                       $urls .= "\n       or Tor2web: ";
-                       $urls .= qq[<a\nhref="$TOR2WEB_URL">$TOR2WEB_URL</a>];
-               }
        }
        my $url = PublicInbox::Hval::prurl($ctx->{env}, $CODE_URL);
        '<hr><pre>'.join("\n\n",