diff src/org/eclipse/jetty/server/Request.java @ 898:39c12b2306a2

remove _useDNS
author Franklin Schmidt <fschmidt@gmail.com>
date Thu, 06 Oct 2016 23:57:43 -0600
parents df84a1741687
children 1fc8ee20cb18
line wrap: on
line diff
--- a/src/org/eclipse/jetty/server/Request.java	Thu Oct 06 23:52:53 2016 -0600
+++ b/src/org/eclipse/jetty/server/Request.java	Thu Oct 06 23:57:43 2016 -0600
@@ -155,7 +155,6 @@
 	private CookieCutter _cookies;
 	private boolean _cookiesExtracted = false;
 	private DispatcherType _dispatcherType;
-	private boolean _dns = false;
 	private EndPoint _endp;
 	private boolean _handled = false;
 	private int _inputState = __NONE;
@@ -691,8 +690,6 @@
 	{
 		if (_endp == null)
 			return null;
-		if (_dns)
-			return _endp.getLocalHost();
 
 		String local = _endp.getLocalAddr();
 		if (local != null && local.indexOf(':') >= 0)
@@ -887,14 +884,6 @@
 	 */
 	public String getRemoteHost()
 	{
-		if (_dns)
-		{
-			if (_remoteHost != null)
-			{
-				return _remoteHost;
-			}
-			return _endp == null?null:_endp.getRemoteHost();
-		}
 		return getRemoteAddr();
 	}
 
@@ -1520,7 +1509,6 @@
 		_connection = connection;
 		_async.setConnection(connection);
 		_endp = connection.getEndPoint();
-		_dns = connection.getResolveNames();
 	}
 
 	/* ------------------------------------------------------------ */