1
0
mirror of https://github.com/yacy/yacy_search_server.git synced 2025-07-22 09:14:38 -04:00

fix auth for forced ping

This commit is contained in:
Michael Peter Christen
2014-01-27 15:56:02 +01:00
parent fbf4f77d80
commit 322854a5f8

@ -198,8 +198,9 @@ public class Network {
if (post.containsKey("addPeer")) {
// AUTHENTICATE
if (!requestHeader.containsKey(RequestHeader.AUTHORIZATION)) {
prop.authenticationRequired();
final int authentication = sb.adminAuthenticated(requestHeader);
if (authentication < 2) {
prop.authenticationRequired(); // must authenticate
return prop;
}