The new_server() function will be useful to create a proxy for the
master-worker.
---
include/proto/server.h | 1 +
src/server.c | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/include/proto/server.h b/include/proto/server.h
index 1c2d1fdaf..75cba471c 100644
--- a/include/proto/server.h
+++ b/include/proto/server.h
@@ -50,6 +50,7 @@ void srv_compute_all_admin_states(struct proxy *px);
int srv_set_addr_via_libc(struct server *srv, int *err_code);
int srv_init_addr(void);
struct server *cli_find_server(struct appctx *appctx, char *arg);
+struct server *new_server(struct proxy *proxy);
/* functions related to server name resolution */
int snr_update_srv_status(struct server *s, int has_no_ip);
diff --git a/src/server.c b/src/server.c
index c0122b668..8d0ae7420 100644
--- a/src/server.c
+++ b/src/server.c
@@ -1632,7 +1632,7 @@ static void srv_settings_cpy(struct server *srv, struct
server *src, int srv_tmp
srv->srvrq = src->srvrq;
}
-static struct server *new_server(struct proxy *proxy)
+struct server *new_server(struct proxy *proxy)
{
struct server *srv;
int i;
--
2.16.4