lib/PublicInbox/NetReader.pm | 4 +++- diff --git a/lib/PublicInbox/NetReader.pm b/lib/PublicInbox/NetReader.pm index 5725a1551a03ab501da1e7672e7cb2388b37342b..e703cddb1ce686eadda1823d4428f0db7972bcb3 100644 --- a/lib/PublicInbox/NetReader.pm +++ b/lib/PublicInbox/NetReader.pm @@ -35,7 +35,7 @@ $h = '127.0.0.1' if $h eq '0'; eval { require IO::Socket::Socks } or die < $h, ProxyPort => $p }; } die "$val not understood (only socks5h:// is supported)\n"; @@ -51,6 +51,7 @@ # only got called in worker[0] require IO::Socket::Socks; my %opt = %$sa; + $opt{SocksDebug} = 1 if $mic_arg{Debug}; $opt{ConnectAddr} = delete $mic_arg{Server}; $opt{ConnectPort} = delete $mic_arg{Port}; $mic_arg{Socket} = IO::Socket::Socks->new(%opt) or die @@ -170,6 +171,7 @@ my ($nn_arg, $nntp_cfg, $uri) = @_; my $nn; if (defined $nn_arg->{ProxyAddr}) { require PublicInbox::NetNNTPSocks; + $nn_arg->{SocksDebug} = 1 if $nn_arg->{Debug}; eval { $nn = PublicInbox::NetNNTPSocks->new_socks(%$nn_arg) }; die "E: <$uri> $@\n" if $@; } else {