diff --git a/htroot/yacysearch_location.java b/htroot/yacysearch_location.java index 7a55b606d..e1a47b05e 100644 --- a/htroot/yacysearch_location.java +++ b/htroot/yacysearch_location.java @@ -26,6 +26,7 @@ import java.util.concurrent.TimeUnit; import net.yacy.cora.document.feed.RSSMessage; import net.yacy.cora.federate.opensearch.SRURSSConnector; import net.yacy.cora.geo.GeoLocation; +import net.yacy.cora.protocol.ClientIdentification; import net.yacy.cora.protocol.Domains; import net.yacy.cora.protocol.HeaderFramework; import net.yacy.cora.protocol.RequestHeader; @@ -93,7 +94,7 @@ public class yacysearch_location { // get a queue of search results final String rssSearchServiceURL = "http://127.0.0.1:" + sb.getConfig("port", "8090") + "/yacysearch.rss"; final BlockingQueue results = new LinkedBlockingQueue(); - SRURSSConnector.searchSRURSS(results, rssSearchServiceURL, lon == 0.0d && lat == 0.0d ? query : query + " /radius/" + lat + "/" + lon + "/" + radius, maximumTime, Integer.MAX_VALUE, null, false, null); + SRURSSConnector.searchSRURSS(results, rssSearchServiceURL, lon == 0.0d && lat == 0.0d ? query : query + " /radius/" + lat + "/" + lon + "/" + radius, maximumTime, Integer.MAX_VALUE, null, false, ClientIdentification.yacyInternetCrawlerAgent); // take the results and compute some locations RSSMessage message; diff --git a/source/net/yacy/peers/Protocol.java b/source/net/yacy/peers/Protocol.java index d2732b95d..3075158a3 100644 --- a/source/net/yacy/peers/Protocol.java +++ b/source/net/yacy/peers/Protocol.java @@ -575,7 +575,7 @@ public final class Protocol { maximumRecords, verify, global, - null); + ClientIdentification.yacyInternetCrawlerAgent); } protected static int primarySearch(