MINOR: set the CO_FL_ADDR_FROM_SET flags with 'set-src'

When the 'set-src' action is used, the CO_FL_ADDR_FROM_SET wasn't set,
it can lead to address being rewritten.
This commit is contained in:
William Lallemand 2016-05-25 02:33:16 +02:00 committed by Willy Tarreau
parent 2e785f23cb
commit 01252ed53c
1 changed files with 1 additions and 0 deletions

View File

@ -1448,6 +1448,7 @@ enum act_return tcp_action_req_set_src(struct act_rule *rule, struct proxy *px,
((struct sockaddr_in6 *)&cli_conn->addr.from)->sin6_port = 0;
}
}
cli_conn->flags |= CO_FL_ADDR_FROM_SET;
}
return ACT_RET_CONT;
}