Am Mi., 1. März 2023 um 11:49 Uhr schrieb Aurelien DARRAGON <
adarra...@haproxy.com>:

> > In the HAProxy configuration i'm using the FQDN name, and it seems
> > HAProxy is just using the short hostname.
> This seems to be true indeed, "localpeer" default value is retrieved
> thanks to gethostname() in haproxy
>
> However, since no obvious changes around "localpeer" handling occurred
> between 2.4.15 and 2.4.22 it looks like your previous system (ubuntu
> 18.04) behaved differently and used to return "s017.domain.local" with
> gethostname() and 'hostname' command (without the -f)
>
> (Please note that hostname command relies on uname() internally, and not
> on gethostname(), but the manual confirms that hostname command without
> arguments "will print the name of the system as returned by the
> gethostname(2) function.")
>
> Could you confirm?
>
> Thanks
>

Yes, your assumption is correct. I've now added "localpeer" global option
to the config to make this more robust/more independent from the OS.

 -------------------------
Mit freundlichen Grüßen / Best regards
Bjoern

Reply via email to