struct proxy *curpx, const struct proxy *defpx,
const char *file, int line, char **err)
{
+ if (!(global.mode & MODE_DISCOVERY))
+ return 0;
+
if (too_many_args(1, args, err, NULL))
return -1;
struct proxy *curpx, const struct proxy *defpx,
const char *file, int line, char **err)
{
+ if (!(global.mode & MODE_DISCOVERY))
+ return 0;
+
if (too_many_args(0, args, err, NULL))
return -1;
struct proxy *curpx, const struct proxy *defpx,
const char *file, int line, char **err)
{
+ if (!(global.mode & MODE_DISCOVERY))
+ return 0;
+
if (too_many_args(0, args, err, NULL))
return -1;
struct proxy *curpx, const struct proxy *defpx,
const char *file, int line, char **err)
{
+ if (!(global.mode & MODE_DISCOVERY))
+ return 0;
+
if (too_many_args(1, args, err, NULL))
return -1;