From 1da9aece12ed19356427f055bf19d5be42696703 Mon Sep 17 00:00:00 2001 From: hermens Date: Tue, 10 Oct 2006 21:34:27 +0000 Subject: [PATCH] Repair DNS prefetch during cacheScan git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@2744 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- source/de/anomic/plasma/plasmaHTCache.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/source/de/anomic/plasma/plasmaHTCache.java b/source/de/anomic/plasma/plasmaHTCache.java index 18d083f85..83b9521b9 100644 --- a/source/de/anomic/plasma/plasmaHTCache.java +++ b/source/de/anomic/plasma/plasmaHTCache.java @@ -475,6 +475,13 @@ public final class plasmaHTCache { int p = s.indexOf("/"); if (p < 0) p = s.indexOf("\\"); if (p < 0) return null; + if (s.startsWith("tree") || s.startsWith("hash")) { + // remove prefix + s = s.substring(p + 1); + p = s.indexOf("/"); + if (p < 0) p = s.indexOf("\\"); + if (p < 0) return null; + } // remove the protokoll s = s.substring(p + 1); p = s.indexOf("/");