25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-24 16:23:40 +01:00

Fix IP address parsing for mod_metrics

This commit is contained in:
Evgeniy Khramtsov 2017-06-13 16:54:29 +03:00
parent 6c8b037422
commit 0aa64381ff

View File

@ -179,7 +179,8 @@ get_socket(N) ->
mod_opt_type(ip) ->
fun(S) ->
{ok, IP} = inet:parse_ipv4_address(iolist_to_binary(S)),
{ok, IP} = inet:parse_ipv4_address(
binary_to_list(iolist_to_binary(S))),
IP
end;
mod_opt_type(port) ->