about summary refs log tree commit homepage
path: root/lib/PublicInbox/ProcessPipe.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2021-01-23 10:27:47 +0000
committerEric Wong <e@80x24.org>2021-01-23 23:45:25 +0000
commita4fa97d8ecd32927f0f3d6580c474059b59dabd2 (patch)
tree8149edd611e36e47b1387beed5ab8863ec165f63 /lib/PublicInbox/ProcessPipe.pm
parentd44073df16b9ae461ec445bea45a3c48451ae1e4 (diff)
downloadpublic-inbox-a4fa97d8ecd32927f0f3d6580c474059b59dabd2.tar.gz
Via curl(1), since that lets us easily use tor on a
per-connection basis via LD_PRELOAD (torsocks) or proxy.
We'll eventually support more curl options which can allow
users to get past firewalls and deal with other odd network
configurations.
Diffstat (limited to 'lib/PublicInbox/ProcessPipe.pm')
-rw-r--r--lib/PublicInbox/ProcessPipe.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/PublicInbox/ProcessPipe.pm b/lib/PublicInbox/ProcessPipe.pm
index e540dc22..97e9c268 100644
--- a/lib/PublicInbox/ProcessPipe.pm
+++ b/lib/PublicInbox/ProcessPipe.pm
@@ -13,6 +13,8 @@ sub TIEHANDLE {
                 $class;
 }
 
+sub BINMODE { binmode(shift->{fh}) } # for IO::Uncompress::Gunzip
+
 sub READ { read($_[0]->{fh}, $_[1], $_[2], $_[3] || 0) }
 
 sub READLINE { readline($_[0]->{fh}) }