mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2026-01-19 00:51:37 +01:00
[BUG] use backend's source and not server's source with tproxy
Checks were using server's source even when only backend's was defined using tproxy.
This commit is contained in:
parent
75db60e3ff
commit
a6b2f3f2ac
@ -451,8 +451,8 @@ void process_chk(struct task *t, struct timeval *next)
|
||||
memset(&itp1, 0, sizeof(itp1));
|
||||
|
||||
itp1.op = TPROXY_ASSIGN;
|
||||
itp1.v.addr.faddr = s->tproxy_addr.sin_addr;
|
||||
itp1.v.addr.fport = s->tproxy_addr.sin_port;
|
||||
itp1.v.addr.faddr = s->proxy->tproxy_addr.sin_addr;
|
||||
itp1.v.addr.fport = s->proxy->tproxy_addr.sin_port;
|
||||
|
||||
/* set connect flag on socket */
|
||||
itp2.op = TPROXY_FLAGS;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user