BUILD: last fix broke non-linux platforms

src.tproxy_addr only exists on linux.
This commit is contained in:
Willy Tarreau 2013-04-25 17:35:22 +02:00
parent 9f04853bd9
commit c621d36ba3

View File

@ -1813,7 +1813,9 @@ int cfg_parse_listen(const char *file, int linenum, char **args, int kwm)
curproxy->conn_src.iface_name = strdup(defproxy.conn_src.iface_name); curproxy->conn_src.iface_name = strdup(defproxy.conn_src.iface_name);
curproxy->conn_src.iface_len = defproxy.conn_src.iface_len; curproxy->conn_src.iface_len = defproxy.conn_src.iface_len;
curproxy->conn_src.opts = defproxy.conn_src.opts; curproxy->conn_src.opts = defproxy.conn_src.opts;
#if defined(CONFIG_HAP_CTTPROXY) || defined(CONFIG_HAP_LINUX_TPROXY)
curproxy->conn_src.tproxy_addr = defproxy.conn_src.tproxy_addr; curproxy->conn_src.tproxy_addr = defproxy.conn_src.tproxy_addr;
#endif
} }
if (curproxy->cap & PR_CAP_FE) { if (curproxy->cap & PR_CAP_FE) {