]> git.ipfire.org Git - thirdparty/haproxy.git/commit
CLEANUP: config: improve address parser error report for unmatched protocols
authorWilly Tarreau <w@1wt.eu>
Fri, 20 May 2022 15:28:30 +0000 (17:28 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 20 May 2022 16:39:43 +0000 (18:39 +0200)
commit2b049b81669898cf7bc2e54b2ab96ddb791f696e
treecd20ff8729a1c11f07f57a839a385091cac0da4f
parent0d04410ebe1b245a62536cbda691487d7482953e
CLEANUP: config: improve address parser error report for unmatched protocols

Just trying "quic4@:4433" with USE_QUIC not set rsults in such a cryptic
error:

   [ALERT]    (14610) : config : parsing [quic-mini.cfg:44] : 'bind' : unsupported protocol family 2 for address 'quic4@:4433'

Let's at least add the stream and datagram statuses to indicate what was
being looked for:

   [ALERT]    (15252) : config : parsing [quic-mini.cfg:44] : 'bind' : unsupported stream protocol for datagram family 2 address 'quic4@:4433'

Still not very pretty but gives a little bit more info.
src/tools.c