Software / code / prosody
Changeset
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 |
| parents | 13805:eef9a2a53dcb |
| children | 13808:d005ee01cafd 13809:2cfb6625b6d2 |
| files | core/portmanager.lua |
| diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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 );