mirror of
https://github.com/processone/ejabberd
synced 2025-10-03 09:49:18 +02:00
Fix IP address parsing for mod_metrics
This commit is contained in:
parent
6c8b037422
commit
0aa64381ff
1 changed files with 2 additions and 1 deletions
|
@ -179,7 +179,8 @@ get_socket(N) ->
|
||||||
|
|
||||||
mod_opt_type(ip) ->
|
mod_opt_type(ip) ->
|
||||||
fun(S) ->
|
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
|
IP
|
||||||
end;
|
end;
|
||||||
mod_opt_type(port) ->
|
mod_opt_type(port) ->
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue