]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MEDIUM: servers: Authorize tfo in default-server.
authorOlivier Houchard <ohouchard@haproxy.com>
Thu, 4 Jul 2019 11:34:10 +0000 (13:34 +0200)
committerOlivier Houchard <cognet@ci0.org>
Thu, 4 Jul 2019 11:34:25 +0000 (13:34 +0200)
There's no reason to forbid using tfo with default-server, so allow it.

This should be backported to 2.0.

src/server.c

index 1a9dd16173e366b321514c2ab64f36ec533b0e33..15c8ffe6a6a2b36a8214ee1d63fc360b7623f9b0 100644 (file)
@@ -1365,7 +1365,7 @@ static struct srv_kw_list srv_kws = { "ALL", { }, {
        { "send-proxy-v2",       srv_parse_send_proxy_v2,       0,  1 }, /* Enforce use of PROXY V2 protocol */
        { "source",              srv_parse_source,             -1,  1 }, /* Set the source address to be used to connect to the server */
        { "stick",               srv_parse_stick,               0,  1 }, /* Enable stick-table persistence */
-       { "tfo",                 srv_parse_tfo,                 0,  0 }, /* enable TCP Fast Open of server */
+       { "tfo",                 srv_parse_tfo,                 0,  1 }, /* enable TCP Fast Open of server */
        { "track",               srv_parse_track,               1,  1 }, /* Set the current state of the server, tracking another one */
        { "socks4",              srv_parse_socks4,              1,  1 }, /* Set the socks4 proxy of the server*/
        { "check-via-socks4",    srv_parse_check_via_socks4,    0,  1 }, /* enable socks4 proxy for health checks */