From b70cf61f0c1f70621b88fe6420083a576d47f19f Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 24 Jun 2019 02:52:38 +0000 Subject: nntp: NNTPS and NNTP+STARTTLS working It kinda, barely works, and I'm most happy I got it working without any modifications to the main NNTP::event_step callback thanks to the DS->write(CODE) support we inherited from Danga::Socket. --- script/public-inbox-nntpd | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'script/public-inbox-nntpd') diff --git a/script/public-inbox-nntpd b/script/public-inbox-nntpd index 484ce8d6..55bf330e 100755 --- a/script/public-inbox-nntpd +++ b/script/public-inbox-nntpd @@ -11,4 +11,5 @@ require PublicInbox::NNTPD; my $nntpd = PublicInbox::NNTPD->new; PublicInbox::Daemon::run('0.0.0.0:119', sub { $nntpd->refresh_groups }, # refresh - sub ($$$) { PublicInbox::NNTP->new($_[0], $nntpd) }); # post_accept + sub ($$$) { PublicInbox::NNTP->new($_[0], $nntpd) }, # post_accept + $nntpd); -- cgit v1.2.3-24-ge0c7