MINOR: server: Improve log message sent when server address is updated
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 8 Sep 2020 08:38:40 +0000 (10:38 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 8 Sep 2020 08:44:57 +0000 (10:44 +0200)
commitb0b7607a5482cb7092e82e51cdbc17ad6efdc2f3
treeba2908dbd0b1ea5d5ee0e48908e61fd9d44534c8
parentd6c6b5f43ba92524369f49976b8f40e5b8edd3cf
MINOR: server: Improve log message sent when server address is updated

When the server address is set for the first time, the log message is a bit ugly
because there is no old ip address to report. Thus in the log, we can see :

  PX/SRV changed its IP from  to A.B.C.D by DNS additional record.

Now, when this happens, "(none)" is reported :

  PX/SRV changed its IP from (none) to A.B.C.D by DNS additional record.

This patch may be backported to 2.2.
src/server.c