BUG/MINOR: startup: init_early: remove obsolete comment

This fixes the commit d6ccd1738b
("MINOR: startup: set HAPROXY_LOCALPEER only once").

Comment "/* preset some environment variables */" is now useless here as
HAPROXY_LOCALPEER is set later during the initialization stage and only once.

This should not be backported, as related to the latest master-worker
refactoring.
This commit is contained in:
Valentine Krasnobaeva 2024-11-21 17:59:52 +01:00 committed by Willy Tarreau
parent aa88d6ee37
commit 332839eb9d

View File

@ -1571,7 +1571,6 @@ static void init_early(int argc, char **argv)
memset(hostname, 0, sizeof(hostname));
gethostname(hostname, sizeof(hostname) - 1);
/* preset some environment variables */
localpeer = strdup(hostname);
if (!localpeer) {
ha_alert("Cannot allocate memory for local peer.\n");