From 44702af019576cc68979056982ac06cf36ff88ed Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Mon, 30 May 2011 18:47:41 +0200 Subject: [PATCH] [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. --- src/cfgparse.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/cfgparse.c b/src/cfgparse.c index dedd5c783..9063854bb 100644 --- a/src/cfgparse.c +++ b/src/cfgparse.c @@ -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; }