config snippet for mirrors.
-EOF
- my @nntp = map { qq($_) } @{$ibx->nntp_url};
- if (@nntp) {
- $urls .= @nntp == 1 ? 'Newsgroup' : 'Newsgroups are';
- $urls .= ' available over NNTP:';
- $urls .= "\n\t" . join("\n\t", @nntp) . "\n";
- }
- if ($urls =~ m!\b[^:]+://\w+\.onion/!) {
- $urls .= " note: .onion URLs require Tor: ";
- $urls .= qq[$TOR_URL];
- }
- '
'.join("\n\n",
- $desc,
- $urls,
- coderepos($ctx),
- code_footer($ctx->{env})
- ).'