mirror of
https://github.com/haproxy/haproxy.git
synced 2026-06-08 08:12:51 -04:00
Revert "BUG/MINOR: server: Remove FQDN requirement for using init-addr and state file"
This reverts commit 19e8aa58f7.
It causes some trouble reported by Manu :
listen tls
[...]
server bla 127.0.0.1:8080
[ALERT] 248/130258 (21960) : parsing [/etc/haproxy/test.cfg:53] : 'server bla' : no method found to resolve address '(null)'
[ALERT] 248/130258 (21960) : Failed to initialize server(s) addr.
According to Nenad :
"It's not a good way to fix the issue we were experiencing
before. It will need a bigger rewrite, because the logic in
srv_iterate_initaddr needs to be changed."
This commit is contained in:
parent
19e8aa58f7
commit
3d609a755e
1 changed files with 2 additions and 1 deletions
|
|
@ -4276,7 +4276,8 @@ int srv_init_addr(void)
|
|||
goto srv_init_addr_next;
|
||||
|
||||
for (srv = curproxy->srv; srv; srv = srv->next)
|
||||
return_code |= srv_iterate_initaddr(srv);
|
||||
if (srv->hostname)
|
||||
return_code |= srv_iterate_initaddr(srv);
|
||||
|
||||
srv_init_addr_next:
|
||||
curproxy = curproxy->next;
|
||||
|
|
|
|||
Loading…
Reference in a new issue