]> Sergey Matveev's repositories - public-inbox.git/commit
net_reader: Net::NNTP --proxy=socks5h:// support
authorEric Wong <e@80x24.org>
Fri, 30 Apr 2021 09:24:37 +0000 (09:24 +0000)
committerEric Wong <e@80x24.org>
Fri, 30 Apr 2021 19:59:47 +0000 (19:59 +0000)
commit3af54d4bdba7fb8abce42cce820668d20f348451
treeb56dd12e90d497a568254913dd46fd6a40883f38
parent715c52fd1afe128d235cc1b9bade3db4ed647514
net_reader: Net::NNTP --proxy=socks5h:// support

Since Net::NNTP doesn't support Socket or RawSocket
options/accessors like Mail::IMAPClient does; we must perform
localized @ISA manipulation and massage Net::NNTP into using
IO::Socket::Socks rather than IO::Socket::IP.

This is a bit fragile, but Net::Cmd and Net::NNTP rarely change;
and I keep an eye on them, anyways.
MANIFEST
lib/PublicInbox/NetNNTPSocks.pm [new file with mode: 0644]
lib/PublicInbox/NetReader.pm
xt/net_nntp_socks.t [new file with mode: 0644]