diff --git a/src/cfgparse.c b/src/cfgparse.c index 8a0e9e7df..1ec327b7e 100644 --- a/src/cfgparse.c +++ b/src/cfgparse.c @@ -88,6 +88,8 @@ struct list sections = LIST_HEAD_INIT(sections); struct list postparsers = LIST_HEAD_INIT(postparsers); +extern struct proxy *mworker_proxy; + char *cursection = NULL; int cfg_maxpconn = 0; /* # of simultaneous connections per proxy (-N) */ int cfg_maxconn = 0; /* # of simultaneous connections, (-n) */ @@ -145,7 +147,7 @@ int str2listener(char *str, struct proxy *curproxy, struct bind_conf *bind_conf, } ss2 = str2sa_range(str, NULL, &port, &end, &fd, &proto, err, - curproxy == global.cli_fe ? NULL : global.unix_bind.prefix, + (curproxy == global.cli_fe || curproxy == mworker_proxy) ? NULL : global.unix_bind.prefix, NULL, PA_O_RESOLVE | PA_O_PORT_OK | PA_O_PORT_MAND | PA_O_PORT_RANGE | PA_O_SOCKET_FD | PA_O_STREAM | PA_O_XPRT); if (!ss2) diff --git a/src/cli.c b/src/cli.c index c28744433..9aede1309 100644 --- a/src/cli.c +++ b/src/cli.c @@ -82,7 +82,7 @@ static struct cli_kw_list cli_keywords = { extern const char *stat_status_codes[]; -static struct proxy *mworker_proxy; /* CLI proxy of the master */ +struct proxy *mworker_proxy; /* CLI proxy of the master */ /* This will show the help message and list the commands supported at the * current level that match all of the first words of if args is not