mirror of
https://github.com/bjc/prosody.git
synced 2025-04-03 21:27:38 +03:00
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).
This commit is contained in:
parent
1d47e2fab1
commit
c384aeca79
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue