core.portmanager: Also reload per-SNI certificates
authorKim Alvefur <zash@zash.se>
Thu, 10 Jun 2021 15:33:52 +0200
changeset 11602 081e550b973a
parent 11601 7e1ca18fdfb3
child 11603 ed405b6357a8
core.portmanager: Also reload per-SNI certificates
core/portmanager.lua
--- a/core/portmanager.lua	Thu Jun 10 15:30:54 2021 +0200
+++ b/core/portmanager.lua	Thu Jun 10 15:33:52 2021 +0200
@@ -298,7 +298,9 @@
 			end
 		end
 	end
-	-- TODO Update SNI too
+	for host in pairs(prosody.hosts) do
+		add_sni_host(host, nil);
+	end
 end, -1);
 
 return {