diff options
author | Matthew Wild <mwild1@gmail.com> | 2025-04-02 16:13:55 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2025-04-02 16:13:55 +0100 |
commit | c384aeca79c69e88055b135a3a926d6107eb946d (patch) | |
tree | e3dfd5b0879be112713d2e2bb039bd16a15ad799 | |
parent | 1d47e2fab1437d6a92e3e3084338425633520f2e (diff) | |
download | prosody-c384aeca79c69e88055b135a3a926d6107eb946d.tar.gz prosody-c384aeca79c69e88055b135a3a926d6107eb946d.zip |
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).
-rw-r--r-- | core/portmanager.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/portmanager.lua b/core/portmanager.lua index 88bd7b61..e1dde176 100644 --- a/core/portmanager.lua +++ b/core/portmanager.lua @@ -258,7 +258,7 @@ local function add_sni_host(host, service) 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 ); |