]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug 3316: Failed to connect to nameserver using TCP
authorAmos Jeffries <squid3@treenet.co.nz>
Sat, 27 Aug 2011 18:32:18 +0000 (06:32 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Sat, 27 Aug 2011 18:32:18 +0000 (06:32 +1200)
src/dns_internal.cc

index 663aa77e9395bd04c6668baf45bba8281cfbc13b..0919df26824109422bf86d0f8b4b35cf4f529654 100644 (file)
@@ -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);