Commit 6be75835 authored by Alex Wenckus's avatar Alex Wenckus Committed by alex

Small fix.

git-svn-id: http://svn.igniterealtime.org/svn/repos/wildfire/trunk@6708 b35dd754-fafc-0310-a699-88a17e54d16e
parent 56688919
...@@ -31,6 +31,8 @@ import javax.servlet.ServletConfig; ...@@ -31,6 +31,8 @@ import javax.servlet.ServletConfig;
import java.io.IOException; import java.io.IOException;
import java.net.InetAddress; import java.net.InetAddress;
import sun.net.util.IPAddressUtil;
/** /**
* Servlet which handles requests to the HTTP binding service. It determines if there is currently * Servlet which handles requests to the HTTP binding service. It determines if there is currently
* an {@link HttpSession} related to the connection or if one needs to be created and then passes * an {@link HttpSession} related to the connection or if one needs to be created and then passes
...@@ -180,7 +182,9 @@ public class HttpBindServlet extends HttpServlet { ...@@ -180,7 +182,9 @@ public class HttpBindServlet extends HttpServlet {
try { try {
HttpConnection connection = new HttpConnection(rid, request.isSecure()); HttpConnection connection = new HttpConnection(rid, request.isSecure());
InetAddress address = InetAddress.getByName(request.getRemoteAddr()); String remoteAddr = request.getRemoteAddr();
InetAddress address = InetAddress.getByAddress(IPAddressUtil.
textToNumericFormatV4(remoteAddr));
connection.setSession(sessionManager.createSession(address, rootNode, connection)); connection.setSession(sessionManager.createSession(address, rootNode, connection));
respond(response, connection); respond(response, connection);
} }
......
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