aboutsummaryrefslogtreecommitdiff
path: root/src/mod_proxy65.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/mod_proxy65.erl')
-rw-r--r--src/mod_proxy65.erl5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mod_proxy65.erl b/src/mod_proxy65.erl
index 5a348a819..cc3546cf2 100644
--- a/src/mod_proxy65.erl
+++ b/src/mod_proxy65.erl
@@ -113,9 +113,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(hostname) ->
fun(undefined) -> undefined;
(H) -> iolist_to_binary(H)