mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-07 23:56:57 +02:00
REORG: server: Export srv_settings_cpy() function
This function will be used to init a proxy with settings of the default proxy. It is mandatory to fix a bug. To do so, it must be exposed.
This commit is contained in:
parent
0b365e3cb5
commit
b32cb9b515
@ -44,6 +44,7 @@ extern struct dict server_key_dict;
|
|||||||
int srv_downtime(const struct server *s);
|
int srv_downtime(const struct server *s);
|
||||||
int srv_lastsession(const struct server *s);
|
int srv_lastsession(const struct server *s);
|
||||||
int srv_getinter(const struct check *check);
|
int srv_getinter(const struct check *check);
|
||||||
|
void srv_settings_cpy(struct server *srv, const struct server *src, int srv_tmpl);
|
||||||
int parse_server(const char *file, int linenum, char **args, struct proxy *curproxy, const struct proxy *defproxy, int parse_flags);
|
int parse_server(const char *file, int linenum, char **args, struct proxy *curproxy, const struct proxy *defproxy, int parse_flags);
|
||||||
int srv_update_addr(struct server *s, void *ip, int ip_sin_family, const char *updater);
|
int srv_update_addr(struct server *s, void *ip, int ip_sin_family, const char *updater);
|
||||||
int server_parse_sni_expr(struct server *newsrv, struct proxy *px, char **err);
|
int server_parse_sni_expr(struct server *newsrv, struct proxy *px, char **err);
|
||||||
|
@ -2169,7 +2169,7 @@ int srv_prepare_for_resolution(struct server *srv, const char *hostname)
|
|||||||
* <srv_tmpl> distinguishes these two cases (must be 1 if <srv> is a template,
|
* <srv_tmpl> distinguishes these two cases (must be 1 if <srv> is a template,
|
||||||
* 0 if not).
|
* 0 if not).
|
||||||
*/
|
*/
|
||||||
static void srv_settings_cpy(struct server *srv, const struct server *src, int srv_tmpl)
|
void srv_settings_cpy(struct server *srv, const struct server *src, int srv_tmpl)
|
||||||
{
|
{
|
||||||
/* Connection source settings copy */
|
/* Connection source settings copy */
|
||||||
srv_conn_src_cpy(srv, src);
|
srv_conn_src_cpy(srv, src);
|
||||||
|
Loading…
Reference in New Issue
Block a user