added user-agent check for yacy-hop proxy authentication

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@3343 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
orbiter 18 years ago
parent 2d7f7da7ce
commit b4aa195c27

@ -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 {

Loading…
Cancel
Save