mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2024-12-14 15:34:35 +00:00
[MINOR] config: make it possible to specify a cookie even without a server
Since version 1.0.0, it's forbidden to have a cookie specified without at least one server. This test is useless and makes it complex to write APIs to iteratively generate working configurations. Remove the test.
This commit is contained in:
parent
14acc7072e
commit
44702af019
@ -5584,11 +5584,6 @@ int check_config_validity()
|
||||
|
||||
case PR_MODE_HTTP:
|
||||
curproxy->acl_requires |= ACL_USE_L7_ANY;
|
||||
if ((curproxy->cookie_name != NULL) && (curproxy->srv == NULL)) {
|
||||
Alert("config : HTTP proxy %s has a cookie but no server list !\n",
|
||||
curproxy->id);
|
||||
cfgerr++;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user