From 313bfd18c1fe748578f4f22e2088d643d5b4d126 Mon Sep 17 00:00:00 2001 From: William Lallemand Date: Fri, 26 Oct 2018 14:47:32 +0200 Subject: [PATCH] MINOR: server: export new_server() function 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 1c2d1fdaff..75cba471cb 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 c0122b6689..8d0ae74202 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;