user/dev discussion of public-inbox itself
 help / color / mirror / code / Atom feed
Search results ordered by [date|relevance]  view[summary|nested|Atom feed]
thread overview below | download mbox.gz: |
* [PATCH 8/8] net_reader: note glob support in .onion hint
  2023-10-03  6:43  6% [PATCH 0/8] IMAP/NNTP client improvements Eric Wong
@ 2023-10-03  6:43  7% ` Eric Wong
  0 siblings, 0 replies; 2+ results
From: Eric Wong @ 2023-10-03  6:43 UTC (permalink / raw)
  To: meta

It's only available for git 2.26+ users, but I figure most
distros have it at this point.
---
 lib/PublicInbox/NetReader.pm | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/lib/PublicInbox/NetReader.pm b/lib/PublicInbox/NetReader.pm
index 76fd3892..95cf1de8 100644
--- a/lib/PublicInbox/NetReader.pm
+++ b/lib/PublicInbox/NetReader.pm
@@ -95,6 +95,7 @@ sub onion_hint ($$) {
 	$uri->host =~ /\.onion\z/i or return "\n";
 	my $t = $uri->isa('PublicInbox::URIimap') ? 'imap' : 'nntp';
 	my $url = PublicInbox::Config::squote_maybe(uri_section($uri));
+	my $scheme = $uri->scheme;
 	my $set_cfg = 'lei config';
 	if (!$lei) { # public-inbox-watch
 		my $f = PublicInbox::Config::squote_maybe(
@@ -110,6 +111,10 @@ try configuring a socks5h:// proxy:
 	url=$url
 	$set_cfg $t.$dq\$url$dq.proxy socks5h://127.0.0.1:9050
 
+git 2.26+ users may instead rely on `*' to match all .onion URLs:
+
+	$set_cfg '$t.$scheme://*.onion.proxy' socks5h://127.0.0.1:9050
+
 ...before retrying your current command
 EOM
 }

^ permalink raw reply related	[relevance 7%]

* [PATCH 0/8] IMAP/NNTP client improvements
@ 2023-10-03  6:43  6% Eric Wong
  2023-10-03  6:43  7% ` [PATCH 8/8] net_reader: note glob support in .onion hint Eric Wong
  0 siblings, 1 reply; 2+ results
From: Eric Wong @ 2023-10-03  6:43 UTC (permalink / raw)
  To: meta

These affect both lei and -watch

Eric Wong (8):
  net_reader: bail out on NNTP SOCKS connection failure
  net_reader: avoid IO::Socket::SSL 2.079..2.081 warning
  config: fix key-only truthy values with urlmatch
  net_reader: support imap.sslVerify + nntp.sslVerify
  lei: workers exit after they tell lei-daemon
  net_reader: process title reflects NNTP article
  xt/lei-onion-convert: test TLS + SOCKS
  net_reader: note glob support in .onion hint

 lib/PublicInbox/Config.pm       | 18 ++++---
 lib/PublicInbox/LEI.pm          |  1 +
 lib/PublicInbox/NetNNTPSocks.pm | 10 ++--
 lib/PublicInbox/NetReader.pm    | 87 +++++++++++++++++++++------------
 t/imapd-tls.t                   | 18 +++++--
 t/nntpd-tls.t                   | 19 +++++--
 xt/lei-onion-convert.t          | 21 ++++++--
 7 files changed, 123 insertions(+), 51 deletions(-)

^ permalink raw reply	[relevance 6%]

Results 1-2 of 2 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2023-10-03  6:43  6% [PATCH 0/8] IMAP/NNTP client improvements Eric Wong
2023-10-03  6:43  7% ` [PATCH 8/8] net_reader: note glob support in .onion hint Eric Wong

Code repositories for project(s) associated with this public inbox

	https://80x24.org/public-inbox.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).