From: Otto Date: Wed, 3 Mar 2021 12:51:45 +0000 (+0100) Subject: As suggested by @rgacogne and verified by myself v6 actually does have TFO. X-Git-Tag: rec-4.5.0-beta1^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6929e220884a3f8ebd3ae70b405d0c20d94850cd;p=thirdparty%2Fpdns.git As suggested by @rgacogne and verified by myself v6 actually does have TFO. --- diff --git a/pdns/lwres.cc b/pdns/lwres.cc index 1d981fede8..af5f651513 100644 --- a/pdns/lwres.cc +++ b/pdns/lwres.cc @@ -327,8 +327,7 @@ LWResult::Result asyncresolve(const ComboAddress& ip, const DNSName& domain, int Socket s(ip.sin4.sin_family, SOCK_STREAM); s.setNonBlocking(); - // v6 tcp does not seem to have fast open - if (ip.sin4.sin_family == AF_INET && SyncRes::s_tcp_fast_open_connect) { + if (SyncRes::s_tcp_fast_open_connect) { try { s.setFastOpenConnect(); }