From b931bf6b48a03f4a26c7544a92c760525a862b7a Mon Sep 17 00:00:00 2001 From: reger Date: Wed, 8 Jan 2014 08:12:56 +0100 Subject: [PATCH] fix use of url proxy access pattern pattern of transparent was used. --- source/net/yacy/http/servlets/YaCyProxyServlet.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/net/yacy/http/servlets/YaCyProxyServlet.java b/source/net/yacy/http/servlets/YaCyProxyServlet.java index 364eee9260..fa710e1648 100644 --- a/source/net/yacy/http/servlets/YaCyProxyServlet.java +++ b/source/net/yacy/http/servlets/YaCyProxyServlet.java @@ -82,7 +82,7 @@ public void service (ServletRequest req, ServletResponse res) throws ServletExce } 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 @@ private String readLine(final InputStream in) throws IOException { 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; }