commit | 58215a01af0f2c07561dbe40abf1313105a016aa | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Thu May 13 22:07:43 2010 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Thu May 13 22:10:02 2010 +0200 |
tree | 3a1f2145e03c2f2c11caf5c25cb3a83b5ed39a1e | |
parent | b337b532decc4962d9dbc84cf1c2881cdb2f26a3 [diff] |
[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.