25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-24 16:23:40 +01:00

mod_matrix_gw: Fix support for @HOST@ in matrix_domain option (#4167)

This commit is contained in:
Badlop 2024-02-28 11:36:57 +01:00
parent aac0e782d0
commit 716f5de517

View File

@ -860,7 +860,7 @@ depends(_Host, _Opts) ->
mod_opt_type(host) ->
econf:host();
mod_opt_type(matrix_domain) ->
econf:binary();
econf:host();
mod_opt_type(key_name) ->
econf:binary();
mod_opt_type(key) ->
@ -875,7 +875,7 @@ mod_opt_type(persist) ->
econf:bool().
mod_options(Host) ->
[{matrix_domain, <<"@HOST@">>},
[{matrix_domain, Host},
{host, <<"matrix.", Host/binary>>},
{key_name, <<"">>},
{key, {<<"">>, <<"">>}},