about summary refs log tree commit homepage
path: root/lib
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2021-09-19 12:50:31 +0000
committerEric Wong <e@80x24.org>2021-09-19 19:53:02 +0000
commit207f0f93632e26818f2ed3b9d78bf3251b5a69b3 (patch)
tree983c7061cadbd595b479aa0ae10fb0dd0c393464 /lib
parentc029c9e085ca1f1b1319e566157e04f9c972c55b (diff)
downloadpublic-inbox-207f0f93632e26818f2ed3b9d78bf3251b5a69b3.tar.gz
watch: use net_reader->mic_new wrapper for SOCKS+TLS
This brings -watch up to feature parity with lei with
SOCKS support.
Diffstat (limited to 'lib')
-rw-r--r--lib/PublicInbox/Watch.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/PublicInbox/Watch.pm b/lib/PublicInbox/Watch.pm
index 43ee0714..387eb6d2 100644
--- a/lib/PublicInbox/Watch.pm
+++ b/lib/PublicInbox/Watch.pm
@@ -358,7 +358,8 @@ sub watch_imap_idle_1 ($$$) {
         my $mic;
         local $0 = $uri->mailbox." $sec";
         until ($self->{quit}) {
-                $mic //= PublicInbox::IMAPClient->new(%$mic_arg,Keepalive => 1);
+                $mic //= PublicInbox::NetReader::mic_new(
+                                        $self, $mic_arg, $sec, $uri);
                 my $err;
                 if ($mic && $mic->IsConnected) {
                         local $self->{mics_cached}->{$sec} = $mic;