if (!px)
return 1;
+ if (px->mode != PR_MODE_TCP && px->mode != PR_MODE_HTTP)
+ return cli_err(appctx, "Not available.\n");
+
/* Note: this lock is to make sure this doesn't change while another
* thread is in srv_set_dyncookie().
*/
if (!px)
return 1;
+ if (px->mode != PR_MODE_TCP && px->mode != PR_MODE_HTTP)
+ return cli_err(appctx, "Not available.\n");
+
/* Note: this lock is to make sure this doesn't change while another
* thread is in srv_set_dyncookie().
*/
if (!px)
return 1;
+ if (px->mode != PR_MODE_TCP && px->mode != PR_MODE_HTTP)
+ return cli_err(appctx, "Not available.\n");
+
if (!*args[4])
return cli_err(appctx, "String value expected.\n");