From 716f5de517201f7f180880e17377149b1a4ad7da Mon Sep 17 00:00:00 2001 From: Badlop Date: Wed, 28 Feb 2024 11:36:57 +0100 Subject: [PATCH] mod_matrix_gw: Fix support for @HOST@ in matrix_domain option (#4167) --- src/mod_matrix_gw.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mod_matrix_gw.erl b/src/mod_matrix_gw.erl index 17426a289..0e7010913 100644 --- a/src/mod_matrix_gw.erl +++ b/src/mod_matrix_gw.erl @@ -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, {<<"">>, <<"">>}},