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;