diff options
author | Evgeniy Khramtsov <ekhramtsov@process-one.net> | 2018-07-08 20:28:11 +0300 |
---|---|---|
committer | Evgeniy Khramtsov <ekhramtsov@process-one.net> | 2018-07-08 20:28:11 +0300 |
commit | 68d12017cc514248b7ce377c0b2f54a60a479bfe (patch) | |
tree | af101f0c736767a298916ee6addda42a46308396 /src/mod_multicast.erl | |
parent | Reload internal room's configuration when mod_muc is reloaded (diff) |
Better detection of duplicated routes/hosts
Diffstat (limited to 'src/mod_multicast.erl')
-rw-r--r-- | src/mod_multicast.erl | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mod_multicast.erl b/src/mod_multicast.erl index ea6e5b44..632c3d27 100644 --- a/src/mod_multicast.erl +++ b/src/mod_multicast.erl @@ -1083,9 +1083,8 @@ depends(_Host, _Opts) -> mod_opt_type(access) -> fun acl:access_rules_validator/1; -mod_opt_type(host) -> fun iolist_to_binary/1; -mod_opt_type(hosts) -> - fun(L) -> lists:map(fun iolist_to_binary/1, L) end; +mod_opt_type(host) -> fun ejabberd_config:v_host/1; +mod_opt_type(hosts) -> fun ejabberd_config:v_hosts/1; mod_opt_type(name) -> fun iolist_to_binary/1; mod_opt_type({limits, Type}) when (Type == local) or (Type == remote) -> fun(L) -> |