ejabberd_s2s_in: Check for subdomain certificate
If an incoming s2s connection to a subdomain such as conference.example.com is accepted and a separate certificate is available for that subdomain, offer that certificate instead of the one for example.com. Thanks to Mike Kuketz for reporting the bug.
This commit is contained in:
parent
2eb907dc7f
commit
122dfec03d
|
@ -135,7 +135,7 @@ process_closed(#{server := LServer} = State, Reason) ->
|
|||
%%%===================================================================
|
||||
%%% xmpp_stream_in callbacks
|
||||
%%%===================================================================
|
||||
tls_options(#{tls_options := TLSOpts, server_host := LServer}) ->
|
||||
tls_options(#{tls_options := TLSOpts, lserver := LServer}) ->
|
||||
ejabberd_s2s:tls_options(LServer, TLSOpts).
|
||||
|
||||
tls_required(#{server_host := LServer}) ->
|
||||
|
|
Loading…
Reference in New Issue