]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: 51d: unable to start haproxy without "51degrees-data-file"
authorDragan Dosen <ddosen@haproxy.com>
Fri, 7 Aug 2015 14:41:23 +0000 (16:41 +0200)
committerWilly Tarreau <w@1wt.eu>
Sat, 8 Aug 2015 10:15:55 +0000 (12:15 +0200)
commit9373fc5811526b13dfe92d9657eda0a1ebfcb913
treef8213202b2afdf52a9c6dc904609a6a3fe2cbf20
parent067fceffb33ff2ba34bdad4a9146c94bfc8cf42e
MINOR: 51d: unable to start haproxy without "51degrees-data-file"

This patch adds a few checks on "global._51degrees.data_file_path" and allows
haproxy to start even when the pattern or trie data file is not specified.

If the "51d" converter is used, a new function "_51d_conv_check" will check
"global._51degrees.data_file_path" and displays a warning if necessary.

In src/haproxy.c, the global 51Degrees "cache_size" has moved outside of the
FIFTYONEDEGREES_H_PATTERN_INCLUDED ifdef block.
src/51d.c
src/haproxy.c