Skip to content

Commit

Permalink
strict check ipv4 addresses (#6711)
Browse files Browse the repository at this point in the history
  • Loading branch information
holy-batman authored Apr 13, 2021
1 parent 2769f4e commit 6af38c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/kazoo_stdlib/src/kz_network_utils.erl
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ detect_ip_family(IP) ->
case inet:parse_ipv6strict_address(IP) of
{'ok', IPv6} -> {'inet6', IPv6};
{'error', 'einval'} ->
case inet:parse_ipv4_address(IP) of
case inet:parse_ipv4strict_address(IP) of
{'ok', IPv4} -> {'inet', IPv4};
{'error', 'einval'}=Error -> Error
end
Expand Down

0 comments on commit 6af38c7

Please sign in to comment.