removed dyndns domains from dns caching

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@1039 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
orbiter 20 years ago
parent 6dc42a2392
commit c86d801b0f

@ -393,7 +393,7 @@ public final class httpc {
try {
ip = InetAddress.getByName(host).getHostAddress();
if ((ip != null) && (!(ip.equals("127.0.0.1"))) && (!(ip.equals("localhost")))) {
nameCacheHit.put(host, ip);
if (host.indexOf("dyndns") < 0) nameCacheHit.put(host, ip);
return ip;
}
return null;
@ -412,6 +412,7 @@ public final class httpc {
*/
public static boolean dnsFetch(String host) {
if ((nameCacheHit.get(host) != null) /*|| (nameCacheMiss.contains(host)) */) return false;
if (host.indexOf("dyndns") < 0) return false;
try {
String ip = InetAddress.getByName(host).getHostAddress();
if ((ip != null) && (!(ip.equals("127.0.0.1"))) && (!(ip.equals("localhost")))) {

Loading…
Cancel
Save