On Thu, Aug 11, 2016 at 11:52:03PM +0200, Baptiste wrote:
> Hi,
>
> This was an undocumented feature which is inherited from very early ages of
> HAProxy: in a listen section (only), if a server has no service port
> configured (after its IP address) and checks are enabled on it, then
> HAProxy uses the port defined by the first bind line of the same section.
>
> We decided to obsolete this feature, cause it's useless now and because it
> prevented a simple and reliable way to change the server port (patches on
> their way).
>
> It's a MAJOR change which might break some configurations.
In fact we should have removed this when we removed the support for the
address on the "listen" lines. This feature used to be used this way :
listen foo :8080
server srv1 1.1.1.1 check
Since the server had no port, it used to make sense to pick the only valid port
of the whole instance by then... This is no longer true.
I don't think we'll break many setups, most broken ones will have already been
fixed after the removal of the syntax above.
Now merged, thanks.
Willy