mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-22 23:02:34 -04:00
CLEANUP: config: provide cleare hints about unsupported QUIC addresses
We now detect that QUIC was likely requested, and if it's not compiled it, we clearly mention it.
This commit is contained in:
parent
2b049b8166
commit
3d7b4684fe
1 changed files with 9 additions and 2 deletions
11
src/tools.c
11
src/tools.c
|
|
@ -1300,11 +1300,18 @@ struct sockaddr_storage *str2sa_range(const char *str, int *port, int *low, int
|
|||
ctrl_type == SOCK_DGRAM);
|
||||
|
||||
if (!new_proto && (!fqdn || !*fqdn) && (ss.ss_family != AF_CUST_EXISTING_FD)) {
|
||||
memprintf(err, "unsupported %s protocol for %s family %d address '%s'",
|
||||
memprintf(err, "unsupported %s protocol for %s family %d address '%s'%s",
|
||||
(ctrl_type == SOCK_DGRAM) ? "datagram" : "stream",
|
||||
(proto_type == PROTO_TYPE_DGRAM) ? "datagram" : "stream",
|
||||
ss.ss_family,
|
||||
str);
|
||||
str,
|
||||
(ctrl_type == SOCK_STREAM && proto_type == PROTO_TYPE_DGRAM) ?
|
||||
#ifndef USE_QUIC
|
||||
"; QUIC is not compiled in if this is what you were looking for."
|
||||
#else
|
||||
""
|
||||
#endif
|
||||
:"");
|
||||
goto out;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue