Ensure tuple IP is formatted correctly

This commit is contained in:
Luke Bakken 2019-03-22 16:07:14 -07:00
parent c76a927b5c
commit 68c70c006a
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@ user_login_authorization(Username, AuthProps) ->
check_vhost_access(#auth_user{username = Username, tags = Tags}, VHost, #{peeraddr := PeerAddr}) ->
bool_req(vhost_path, [{username, Username},
{vhost, VHost},
{ip, PeerAddr},
{ip, inet:ntoa(PeerAddr)},
{tags, join_tags(Tags)}]).
check_resource_access(#auth_user{username = Username, tags = Tags},