Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
added user-agent check for yacy-hop proxy authentication
orbiterb4aa195c27be
diff --git a/source/de/anomic/http/httpd.java b/source/de/anomic/http/httpd.javaindex ea0df6d9f..33f1dd1f6 100644--- a/source/de/anomic/http/httpd.java+++ b/source/de/anomic/http/httpd.java@@ -350,8 +350,7 @@ public final class httpd implements serverHandler {if (!test.equals(auth.trim().substring(6))) return false;// the accessing client must use a yacy user-agent-- return true;+ return (((String) header.get(httpHeader.USER_AGENT,"")).startsWith("yacy"));}private boolean handleProxyAuthentication(httpHeader header) throws IOException {