]> git.ipfire.org Git - thirdparty/squid.git/commit - src/auth/UserRequest.h
Polish: clarify authenticate_ip_ttl code
authorAmos Jeffries <squid3@treenet.co.nz>
Mon, 18 Mar 2013 10:10:13 +0000 (04:10 -0600)
committerAmos Jeffries <squid3@treenet.co.nz>
Mon, 18 Mar 2013 10:10:13 +0000 (04:10 -0600)
commitc35dd84844eb8706872edd412deadc5fdadfb26f
tree5f71e77d90f6d121f5e55e342963328b55f507d4
parente412456e61e8500e8537da20253a2371c81a9cd3
Polish: clarify authenticate_ip_ttl code

This patch alters the directive implementation to only perform TTL
addition when setting the expiry value. This improves speed a little when
comparing timestamps, and allows the config file to display 1 second TTL
instead of displaying 0 seconds and actually being 0-1 seconds.
 Which resolves some confusion about why max_user_ip ACL still works when
the TTL is set to 0 seconds.

Also, document the AuthUserIP class used to store the IP information.
src/auth/User.cc
src/auth/UserRequest.h
src/cf.data.pre