]> Sergey Matveev's repositories - public-inbox.git/blobdiff - script/public-inbox-httpd
httpd: set psgi.url_scheme to 'https' for TLS listeners
[public-inbox.git] / script / public-inbox-httpd
index 7b0ec56093e070c298f017e9324887557e9edd22..a4dd809916c5116db301ec30c65f0919a48517ec 100755 (executable)
@@ -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),
        });