about summary refs log tree commit homepage
path: root/script/public-inbox-httpd
diff options
context:
space:
mode:
Diffstat (limited to 'script/public-inbox-httpd')
-rwxr-xr-xscript/public-inbox-httpd7
1 files changed, 4 insertions, 3 deletions
diff --git a/script/public-inbox-httpd b/script/public-inbox-httpd
index 7b0ec560..a4dd8099 100755
--- a/script/public-inbox-httpd
+++ b/script/public-inbox-httpd
@@ -42,9 +42,10 @@ my $refresh = sub {
 };
 
 PublicInbox::Daemon::run('0.0.0.0:8080', $refresh,
-        sub ($$$) { # post_accept
-                my ($client, $addr, $srv) = @_;
+        sub ($$$) { # Listener->{post_accept}
+                my ($client, $addr, $srv, $tls_wrap) = @_;
                 my $fd = fileno($srv);
-                my $h = $httpds{$fd} //= PublicInbox::HTTPD->new($srv, $app);
+                my $h = $httpds{$fd} //=
+                        PublicInbox::HTTPD->new($srv, $app, $client);
                 PublicInbox::HTTP->new($client, $addr, $h),
         });