mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-22 14:21:25 +02:00
MEDIUM: stats-file: explicitely ignore comments starting by //
Explicitely ignore comments starting by // so they don't emit a warning.
This commit is contained in:
parent
96f2736e99
commit
f36caf7b81
@ -385,6 +385,10 @@ void apply_stats_file(void)
|
||||
if (!istlen(istline))
|
||||
continue;
|
||||
|
||||
/* comment line starts by // */
|
||||
if (istmatch(istline, ist("//")) != 0)
|
||||
continue;
|
||||
|
||||
if (*istptr(istline) == '#') {
|
||||
if (parse_header_line(istline, &st_tree, &domain, cols)) {
|
||||
if (!valid_format) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user