diff options
author | Eric Wong <e@80x24.org> | 2021-09-09 05:24:58 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2021-09-09 05:42:54 +0000 |
commit | fb4b16193d0d839a0869b2cf2295b7384ef5f1e3 (patch) | |
tree | 346a0752d57a3f4665d32657b284d4ad05d78cff /lib/PublicInbox/NetReader.pm | |
parent | ca95be4481ba2d73d2e5290054871b023228db9d (diff) | |
download | public-inbox-fb4b16193d0d839a0869b2cf2295b7384ef5f1e3.tar.gz |
This will save a little bit of memory and IPC I/O for users connecting to localhost and the majority of Tor .onions.
Diffstat (limited to 'lib/PublicInbox/NetReader.pm')
-rw-r--r-- | lib/PublicInbox/NetReader.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/PublicInbox/NetReader.pm b/lib/PublicInbox/NetReader.pm index 08166415..b5d14f13 100644 --- a/lib/PublicInbox/NetReader.pm +++ b/lib/PublicInbox/NetReader.pm @@ -79,6 +79,7 @@ sub mic_for ($$$$) { # mic = Mail::IMAPClient Keepalive => 1, # SO_KEEPALIVE %$common, # may set Starttls, Compress, Debug .... }; + $mic_arg->{Ssl} = 1 if $uri->scheme eq 'imaps'; require PublicInbox::IMAPClient; my $mic = mic_new($self, $mic_arg, $sec, $uri) or die "E: <$uri> new: $@\n"; @@ -197,9 +198,9 @@ sub nn_for ($$$$) { # nn = Net::NNTP my $nn_arg = { Port => $uri->port, Host => $host, - SSL => $uri->secure, # snews == nntps %$common, # may Debug .... }; + $nn_arg->{SSL} = 1 if $uri->secure; # snews == nntps my $sa = $self->{-proxy_cli}; %$nn_arg = (%$nn_arg, %$sa) if $sa; my $nn = nn_new($nn_arg, $nntp_opt, $uri); |