Diff

core/portmanager.lua @ 13807:21c58b1d5b47 13.0

portmanager: Use alternate host (if any) for SNI (many thanks Zaak!) This was an oversight in the fix for #1915 in commit 4ea7bd7325be (though it seems commit 7e9ebdc75ce4 was the first to introduce this bug).
author Matthew Wild <mwild1@gmail.com>
date Wed, 02 Apr 2025 16:13:55 +0100
parent 13792:4ea7bd7325be
child 13813:fd7b0adada05
line wrap: on
line diff
--- a/core/portmanager.lua	Tue Apr 01 20:49:58 2025 +0200
+++ b/core/portmanager.lua	Wed Apr 02 16:13:55 2025 +0100
@@ -258,7 +258,7 @@
 				log("error", "Error creating TLS context for SNI host %s: %s", host, err);
 			else
 				local ok, err = active_service.server:sslctx():set_sni_host(
-					host,
+					alternate_host or host,
 					cfg.certificate,
 					cfg.key
 					);