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:
parent
aac0e782d0
commit
716f5de517
@ -860,7 +860,7 @@ depends(_Host, _Opts) ->
|
|||||||
mod_opt_type(host) ->
|
mod_opt_type(host) ->
|
||||||
econf:host();
|
econf:host();
|
||||||
mod_opt_type(matrix_domain) ->
|
mod_opt_type(matrix_domain) ->
|
||||||
econf:binary();
|
econf:host();
|
||||||
mod_opt_type(key_name) ->
|
mod_opt_type(key_name) ->
|
||||||
econf:binary();
|
econf:binary();
|
||||||
mod_opt_type(key) ->
|
mod_opt_type(key) ->
|
||||||
@ -875,7 +875,7 @@ mod_opt_type(persist) ->
|
|||||||
econf:bool().
|
econf:bool().
|
||||||
|
|
||||||
mod_options(Host) ->
|
mod_options(Host) ->
|
||||||
[{matrix_domain, <<"@HOST@">>},
|
[{matrix_domain, Host},
|
||||||
{host, <<"matrix.", Host/binary>>},
|
{host, <<"matrix.", Host/binary>>},
|
||||||
{key_name, <<"">>},
|
{key_name, <<"">>},
|
||||||
{key, {<<"">>, <<"">>}},
|
{key, {<<"">>, <<"">>}},
|
||||||
|
Loading…
Reference in New Issue
Block a user