mirror of
https://github.com/yacy/yacy_search_server.git
synced 2024-09-19 00:01:41 +02:00
no DoS protection for intranet mode
This commit is contained in:
parent
0f443ac755
commit
88b86afc89
|
@ -248,6 +248,7 @@ public class yacysearch {
|
|||
|| sb.getConfigBool(SwitchboardConstants.INDEX_RECEIVE_AUTODISABLED, true)
|
||||
|| clustersearch;
|
||||
global = global && indexReceiveGranted; // if the user does not want indexes from remote peers, it cannot be a global searchnn
|
||||
final boolean intranetMode = sb.isIntranetMode() || sb.isAllIPMode();
|
||||
|
||||
// increase search statistic counter
|
||||
if ( !global ) {
|
||||
|
@ -298,7 +299,7 @@ public class yacysearch {
|
|||
Log.logInfo("LOCAL_SEARCH", "ACCESS CONTROL: WHITELISTED CLIENT FROM "
|
||||
+ client
|
||||
+ " gets no search restrictions");
|
||||
} else if ( !authenticated && !localhostAccess ) {
|
||||
} else if ( !authenticated && !localhostAccess && !intranetMode ) {
|
||||
// in case that we do a global search or we want to fetch snippets, we check for DoS cases
|
||||
synchronized ( trackerHandles ) {
|
||||
final int accInThreeSeconds =
|
||||
|
|
Loading…
Reference in New Issue
Block a user