Skip to content

Commit

Permalink
fix typo for upper bound of 172.16/12
Browse files Browse the repository at this point in the history
  • Loading branch information
b committed Oct 24, 2010
1 parent c88c308 commit 7336af2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/webmachine_request.erl
Expand Up @@ -104,7 +104,7 @@ get_peer() ->

peer_from_peername({ok, {Addr={10, _, _, _}, _Port}}) ->
x_peername(inet_parse:ntoa(Addr));
peer_from_peername({ok, {Addr={172, Second, _, _}, _Port}}) when (Second > 15) andalso (Second < 21) ->
peer_from_peername({ok, {Addr={172, Second, _, _}, _Port}}) when (Second > 15) andalso (Second < 32) ->
x_peername(inet_parse:ntoa(Addr));
peer_from_peername({ok, {Addr={192, 168, _, _}, _Port}}) ->
x_peername(inet_parse:ntoa(Addr));
Expand Down

0 comments on commit 7336af2

Please sign in to comment.