mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-03-25 04:17:42 +00:00
BUG/MINOR: server: Remove FQDN requirement for using init-addr and state file
Historically the DNS was the only way of updating the server IP dynamically and the init-addr processing and state file load required the server to have an FQDN defined. Given that we can now update the IP through the socket as well and also can have different init-addr values (like IP and 'none') - this requirement needs to be removed. This patch should be backported to 1.7.
This commit is contained in:
parent
ab62f51959
commit
19e8aa58f7
@ -4276,8 +4276,7 @@ int srv_init_addr(void)
|
||||
goto srv_init_addr_next;
|
||||
|
||||
for (srv = curproxy->srv; srv; srv = srv->next)
|
||||
if (srv->hostname)
|
||||
return_code |= srv_iterate_initaddr(srv);
|
||||
return_code |= srv_iterate_initaddr(srv);
|
||||
|
||||
srv_init_addr_next:
|
||||
curproxy = curproxy->next;
|
||||
|
Loading…
Reference in New Issue
Block a user