about summary refs log tree commit homepage
path: root/lib/PublicInbox/LeiInput.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2021-04-30 09:24:36 +0000
committerEric Wong <e@80x24.org>2021-04-30 19:59:46 +0000
commit715c52fd1afe128d235cc1b9bade3db4ed647514 (patch)
tree57c8dd17663b23efb20f3308b79f2fd8ded4fc29 /lib/PublicInbox/LeiInput.pm
parent61a81c1da072e64bad715e8db79432ab2d277c30 (diff)
downloadpublic-inbox-715c52fd1afe128d235cc1b9bade3db4ed647514.tar.gz
Mail::IMAPClient provides the ability to pass a pre-connected
Socket to it.  We can rely on this functionality to use
IO::Socket::Socks in place whatever socket class
Mail::IMAPClient chooses to use.

The --proxy=s is shared with curl(1), though we only support
socks5h:// at the moment.  Is there any need for SOCKS4 or SOCKS5
without name resolution?  Tor .onions require socks5h:// for
name resolution and to prevent data leakage.
Diffstat (limited to 'lib/PublicInbox/LeiInput.pm')
-rw-r--r--lib/PublicInbox/LeiInput.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/LeiInput.pm b/lib/PublicInbox/LeiInput.pm
index 277ad88d..86f300c3 100644
--- a/lib/PublicInbox/LeiInput.pm
+++ b/lib/PublicInbox/LeiInput.pm
@@ -294,7 +294,7 @@ $input is `eml', not --in-format=$in_fmt
         }
         if ($net) {
                 $net->{-can_die} = 1;
-                if (my $err = $net->errors) {
+                if (my $err = $net->errors($lei)) {
                         return $lei->fail($err);
                 }
                 $net->{quiet} = $lei->{opt}->{quiet};