From 19e8aa58f7c42e602a95b4ceb4b254c424aed11c Mon Sep 17 00:00:00 2001 From: Nenad Merdanovic Date: Tue, 5 Sep 2017 15:32:47 +0200 Subject: [PATCH] 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. --- src/server.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/server.c b/src/server.c index c80c98700..67870b8dd 100644 --- a/src/server.c +++ b/src/server.c @@ -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;