From 325c4df482af7844266ce07c5be60c0514bd6585 Mon Sep 17 00:00:00 2001 From: Greg Wilkins Date: Mon, 31 Mar 2014 12:17:53 +1100 Subject: [PATCH] 431592 - do not resolved forwarded-for address --- .../org/eclipse/jetty/server/ForwardedRequestCustomizer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jetty-server/src/main/java/org/eclipse/jetty/server/ForwardedRequestCustomizer.java b/jetty-server/src/main/java/org/eclipse/jetty/server/ForwardedRequestCustomizer.java index 28abef3ded5..891e8ee1cf2 100644 --- a/jetty-server/src/main/java/org/eclipse/jetty/server/ForwardedRequestCustomizer.java +++ b/jetty-server/src/main/java/org/eclipse/jetty/server/ForwardedRequestCustomizer.java @@ -247,7 +247,7 @@ public class ForwardedRequestCustomizer implements Customizer if (forwardedFor != null) { - request.setRemoteAddr(new InetSocketAddress(forwardedFor,request.getRemotePort())); + request.setRemoteAddr(InetSocketAddress.createUnresolved(forwardedFor,request.getRemotePort())); } if (forwardedProto != null)