Skip to content

Commit

Permalink
fix use of url proxy access pattern
Browse files Browse the repository at this point in the history
pattern of transparent was used.
  • Loading branch information
reger committed Jan 8, 2014
1 parent 280c4a3 commit b931bf6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/net/yacy/http/servlets/YaCyProxyServlet.java
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit b931bf6

Please sign in to comment.