mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2024-12-14 23:44:41 +00:00
BUG/MINOR: server : no transparent proxy for DragonflyBSD
IP*_BINDANY is not defined under this system thus it is necessary to make those fields access since CONFIG_HAP_TRANSPARENT is not defined. [wt: problem introduced late in 1.8-dev. The same fix was also reported by Steven Davidovitz]
This commit is contained in:
parent
68af3c1a2e
commit
3a471935e6
@ -1741,12 +1741,14 @@ int parse_server(const char *file, int linenum, char **args, struct proxy *curpr
|
||||
}
|
||||
}
|
||||
}
|
||||
#ifdef CONFIG_HAP_TRANSPARENT
|
||||
if (curproxy->defsrv.conn_src.bind_hdr_name != NULL) {
|
||||
newsrv->conn_src.bind_hdr_name = strdup(curproxy->defsrv.conn_src.bind_hdr_name);
|
||||
newsrv->conn_src.bind_hdr_len = strlen(curproxy->defsrv.conn_src.bind_hdr_name);
|
||||
}
|
||||
newsrv->conn_src.bind_hdr_occ = curproxy->defsrv.conn_src.bind_hdr_occ;
|
||||
newsrv->conn_src.tproxy_addr = curproxy->defsrv.conn_src.tproxy_addr;
|
||||
#endif
|
||||
if (curproxy->defsrv.conn_src.iface_name != NULL)
|
||||
newsrv->conn_src.iface_name = strdup(curproxy->defsrv.conn_src.iface_name);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user