MEDIUM: cli: add agent-port command
authorWilliam Dauchy <wdauchy@gmail.com>
Thu, 11 Feb 2021 21:51:24 +0000 (22:51 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 12 Feb 2021 15:04:52 +0000 (16:04 +0100)
commit7cabc06da68908f3deb2d5aa406484a94fa353cd
tree805efd987baa591db457e94460f4f27ec65d6133
parentb456e1f38919191aaa452b99881278ff83c53348
MEDIUM: cli: add agent-port command

this patch allows to set agent port at runtime. In order to align with
both `addr` and `check-addr` commands, also add the possibility to
optionnaly set port on `agent-addr` command. This led to a small
refactor in order to use the same function for both `agent-addr` and
`agent-port` commands.

Signed-off-by: William Dauchy <wdauchy@gmail.com>
doc/management.txt
src/server.c