From 6d01d5b60dbfc3319092cebdda7c3a371eafbbc6 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Wed, 20 Jul 2022 09:24:12 +0000 Subject: [PATCH] netd: setup TLS bits for well-known STARTTLS ports Unfortunately, I can't think of an easy way to test this in our test suite since binding these ports are privileged and are often in use, anyways. --- lib/PublicInbox/Daemon.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/PublicInbox/Daemon.pm b/lib/PublicInbox/Daemon.pm index fbce9154..bceae6e5 100644 --- a/lib/PublicInbox/Daemon.pm +++ b/lib/PublicInbox/Daemon.pm @@ -208,7 +208,7 @@ EOF $tls_opt{"$scheme://$sockname"} ||= accept_tls_opt(''); } elsif (($scheme = $KNOWN_STARTTLS{$1})) { $xnetd->{$sockname} = load_mod($scheme); - next if $tls_opt{"$scheme://$sockname"}; + $tls_opt{"$scheme://$sockname"} ||= accept_tls_opt(''); $tls_opt{''} ||= accept_tls_opt(''); } } -- 2.44.0