From: Amos Jeffries Date: Sat, 27 Aug 2011 18:32:18 +0000 (+1200) Subject: Bug 3316: Failed to connect to nameserver using TCP X-Git-Tag: take08~35^2~8 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f5ba22ff5332b7d7087ea7cc4747f49e93b879eb;p=thirdparty%2Fsquid.git Bug 3316: Failed to connect to nameserver using TCP --- diff --git a/src/dns_internal.cc b/src/dns_internal.cc index 663aa77e93..0919df2682 100644 --- a/src/dns_internal.cc +++ b/src/dns_internal.cc @@ -843,6 +843,10 @@ idnsInitVC(int ns) conn->remote = nameservers[ns].S; + if (conn->remote.IsIPv4()) { + conn->local.SetIPv4(); + } + AsyncCall::Pointer call = commCbCall(78,3, "idnsInitVCConnected", CommConnectCbPtrFun(idnsInitVCConnected, vc)); Comm::ConnOpener *cs = new Comm::ConnOpener(conn, call, Config.Timeout.connect);