Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Optimize the ACL checks during the request's authentication
Now, in yaws_server:handle_auth/4, the client ip is no more converted into integer. All ip addresses in #auth.acl are of the type ip_address(). That makes easier the checking of the client ip. To clean up the code, functions that parses and checks the allowed/denied ip addresses with the client ip were moved into yaws.erl.
- Loading branch information
Christopher Faulet
committed
Sep 12, 2012
1 parent
3784dfb
commit a080aad
Showing
5 changed files
with
296 additions
and
108 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.