Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

fix use of url proxy access pattern pattern of transparent was used.

regerb931bf6b48a0
diff --git a/source/net/yacy/http/servlets/YaCyProxyServlet.java b/source/net/yacy/http/servlets/YaCyProxyServlet.java
index 364eee926..fa710e164 100644
--- a/source/net/yacy/http/servlets/YaCyProxyServlet.java
+++ b/source/net/yacy/http/servlets/YaCyProxyServlet.java
@@ -82,7 +82,7 @@ public class YaCyProxyServlet extends ProxyServlet implements Servlet {
}
final String remoteHost = req.getRemoteHost();
- if (!Domains.isThisHostIP(remoteHost)) {
+ if (!Domains.isThisHostIP(remoteHost)) {
response.sendError(HttpServletResponse.SC_FORBIDDEN,
"proxy use not granted for IP " + remoteHost);
return;
@@ -333,7 +333,7 @@ public class YaCyProxyServlet extends ProxyServlet implements Servlet {
private boolean proxyippatternmatch(final String key) {
// the cfgippattern is a comma-separated list of patterns
// each pattern may contain one wildcard-character '*' which matches anything
- final String cfgippattern = Switchboard.getSwitchboard().getConfig("proxyClient", "*");
+ final String cfgippattern = Switchboard.getSwitchboard().getConfig("proxyURL.access", "*");
if (cfgippattern.equals("*")) {
return true;
}