mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2026-02-10 03:41:24 +01:00
MINOR: dns: Don't set the check port during a server dns resolution
When a server dns resolution is performed, there is no reason to set an unconfigured check port with the server port. Because by default, if the check port is not set, the server's one is used. Thus we can remove this useless assignment. It is mandatory for next improvements.
This commit is contained in:
parent
99497d7dba
commit
21ca3dfc3a
@ -712,9 +712,6 @@ static void dns_check_dns_response(struct dns_resolution *res)
|
||||
|
||||
srv->svc_port = item->port;
|
||||
srv->flags &= ~SRV_F_MAPPORTS;
|
||||
if ((srv->check.state & CHK_ST_CONFIGURED) &&
|
||||
!(srv->flags & SRV_F_CHECKPORT))
|
||||
srv->check.port = item->port;
|
||||
|
||||
if (!srv->dns_opts.ignore_weight) {
|
||||
char weight[9];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user