From ac3cd2ebaa64ee4adf843338ce9f95cb214f606a Mon Sep 17 00:00:00 2001 From: Christophe Romain Date: Fri, 28 Jun 2013 18:32:22 +0200 Subject: [PATCH] ip_adresse() does not need binary representation in config --- src/ejabberd_config.erl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ejabberd_config.erl b/src/ejabberd_config.erl index 2e82e5a0b..d506c4c78 100644 --- a/src/ejabberd_config.erl +++ b/src/ejabberd_config.erl @@ -722,6 +722,9 @@ strings_to_binary(L) when is_list(L) -> false -> strings_to_binary1(L) end; +strings_to_binary({A, B, C, D}) when + is_integer(A), is_integer(B), is_integer(C), is_integer(D) -> + {A, B, C ,D}; strings_to_binary(T) when is_tuple(T) -> list_to_tuple(strings_to_binary1(tuple_to_list(T))); strings_to_binary(X) ->