mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-24 17:29:28 +01:00
Fix IP address parsing for mod_metrics
This commit is contained in:
parent
6c8b037422
commit
0aa64381ff
@ -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) ->
|
||||
|
Loading…
Reference in New Issue
Block a user