]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[MINOR] acl: ignore empty lines and comments in pattern files
authorWilly Tarreau <w@1wt.eu>
Thu, 13 May 2010 20:07:43 +0000 (22:07 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 13 May 2010 20:10:02 +0000 (22:10 +0200)
commit58215a01af0f2c07561dbe40abf1313105a016aa
tree3a1f2145e03c2f2c11caf5c25cb3a83b5ed39a1e
parentb337b532decc4962d9dbc84cf1c2881cdb2f26a3
[MINOR] acl: ignore empty lines and comments in pattern files

Most often, pattern files used by ACLs will be produced by tools
which emit some comments (eg: geolocation lists). It's very annoying
to have to clean the files before using them, and it does not make
much sense to be able to support patterns we already can't input in
the config file. So this patch makes the pattern file loader skip
lines beginning with a sharp and the empty ones, and strips leading
spaces and tabs.
doc/configuration.txt
src/acl.c