mirror of
https://github.com/haproxy/haproxy.git
synced 2026-05-28 04:12:17 -04:00
BUG/MINOR: global: Fix tune.disable-(fast-forward/zero-copy-forwarding) options
These options were not properly handled during configration parsing. A wrong bitwise operation was used. No backport needed.
This commit is contained in:
parent
2fb1776f5c
commit
671e07617c
1 changed files with 2 additions and 2 deletions
|
|
@ -515,12 +515,12 @@ int cfg_parse_global(const char *file, int linenum, char **args, int kwm)
|
|||
|
||||
if (alertif_too_many_args(0, file, linenum, args, &err_code))
|
||||
goto out;
|
||||
global.tune.options &= GTUNE_USE_FAST_FWD;
|
||||
global.tune.options &= ~GTUNE_USE_FAST_FWD;
|
||||
}
|
||||
else if (strcmp(args[0], "tune.disable-zero-copy-forwarding") == 0) {
|
||||
if (alertif_too_many_args(0, file, linenum, args, &err_code))
|
||||
goto out;
|
||||
global.tune.options &= GTUNE_USE_ZERO_COPY_FWD;
|
||||
global.tune.options &= ~GTUNE_USE_ZERO_COPY_FWD;
|
||||
}
|
||||
else if (strcmp(args[0], "cluster-secret") == 0) {
|
||||
blk_SHA_CTX sha1_ctx;
|
||||
|
|
|
|||
Loading…
Reference in a new issue