ip_adresse() does not need binary representation in config

This commit is contained in:
Christophe Romain 2013-06-28 18:32:22 +02:00
parent 2636da0d98
commit ac3cd2ebaa
1 changed files with 3 additions and 0 deletions

View File

@ -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) ->