MAJOR: listen section: don't use first bind port anymore when no server ports are...
authorBaptiste Assmann <bedis9@gmail.com>
Mon, 25 Apr 2016 11:40:51 +0000 (13:40 +0200)
committerWilly Tarreau <w@1wt.eu>
Sun, 14 Aug 2016 10:18:14 +0000 (12:18 +0200)
commitd260e1dea6689985f01835f009a24da180ee6c01
tree59cdc3eb5f9d3fbceb672e55c881cfeba4a01364
parent08396c87d0058d5091ba6d4002b6559f1d41ae5b
MAJOR: listen section: don't use first bind port anymore when no server ports are provided

Up to HAProxy 1.7-dev3, HAProxy used to use the first bind port from it's
local 'listen' section when no port is configured on the server.

IE, in the configuration below, the server port would be 25:

  listen smtp
   bind :25
   server s1 1.0.0.1 check

This way of working is now obsolete and can be removed, furthermore it is not
documented!

This will make the possibility to change the server's port much easier.
src/server.c