private boolean ipAuthorized(final HttpRequest request) {
boolean ipAuthorized = false;
String xForwardedFor = request.header(xForwardHeader);
Client client = new Client(getAddress(request),
whitelist,
new XForwardedFor(xForwardedFor),
proxyChains);
ipAuthorized = client.isAuthorized();
if (ipAuthorized) {
if (log) {
String template = "Ip Authorized client: {}";