MINOR: version: report "HAProxy" not "HA-Proxy" in the version output

When running "haproxy -v", we still get "HA-Proxy" which is the last
place where this confusing oddity happens. Being so used to it I didn't
even notice it until it was reported to me just after 2.2 but it never
got fixed, despite the PRODUCT_NAME macro that is used to report the
name in the stats page and in "show info" being already set to "HAProxy"
15 years ago in 1.2.14 with commit e03312613. It's about time to
uniformize everything.
This commit is contained in:
Willy Tarreau 2021-05-09 06:14:25 +02:00
parent 5f3448f6de
commit a5357cdfa5
1 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
/* /*
* HA-Proxy : High Availability-enabled HTTP/TCP proxy * HAProxy : High Availability-enabled HTTP/TCP proxy
* Copyright 2000-2021 Willy Tarreau <willy@haproxy.org>. * Copyright 2000-2021 Willy Tarreau <willy@haproxy.org>.
* *
* This program is free software; you can redistribute it and/or * This program is free software; you can redistribute it and/or
@ -474,7 +474,7 @@ static void display_version()
{ {
struct utsname utsname; struct utsname utsname;
printf("HA-Proxy version %s %s - https://haproxy.org/\n" printf("HAProxy version %s %s - https://haproxy.org/\n"
PRODUCT_STATUS "\n", haproxy_version, haproxy_date); PRODUCT_STATUS "\n", haproxy_version, haproxy_date);
if (strlen(PRODUCT_URL_BUGS) > 0) { if (strlen(PRODUCT_URL_BUGS) > 0) {