Commit d854e338 authored by Matija Obreza's avatar Matija Obreza
Browse files

Don't check captcha on linkLocal addresses

parent b4fc6413
...@@ -110,7 +110,7 @@ public class HtmlController extends BaseController { ...@@ -110,7 +110,7 @@ public class HtmlController extends BaseController {
try { try {
InetAddress remoteInetAddr = InetAddress.getByName(remoteAddr); InetAddress remoteInetAddr = InetAddress.getByName(remoteAddr);
isLocalRequest = remoteInetAddr.isAnyLocalAddress() || remoteInetAddr.isLoopbackAddress(); isLocalRequest = remoteInetAddr.isLinkLocalAddress() || remoteInetAddr.isAnyLocalAddress() || remoteInetAddr.isLoopbackAddress();
_logger.warn("Remote addr: " + remoteAddr + " " + remoteInetAddr + " isLocal=" + isLocalRequest); _logger.warn("Remote addr: " + remoteAddr + " " + remoteInetAddr + " isLocal=" + isLocalRequest);
} catch (UnknownHostException e1) { } catch (UnknownHostException e1) {
_logger.warn(e1.getMessage()); _logger.warn(e1.getMessage());
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment