323464 IPv6 localhost
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@2223 7e9141cc-0065-0410-87d8-b60c137991c4
This commit is contained in:
parent
9f8cf49b73
commit
8750c7d258
|
@ -17,6 +17,7 @@ jetty-7.2-SNAPSHOT
|
|||
+ 322683 RewriteHandler thread safety
|
||||
+ 323196 org.mortbay properties to org.eclipse
|
||||
+ 323435 MovedContextHandler permanent redirection
|
||||
+ 323464 IPv6 localhost with no Host header
|
||||
+ JETTY-912 added per exchange timeout api
|
||||
+ JETTY-1245 Do not use direct buffers with NIO SSL
|
||||
+ JETTY-1249 Apply max idle time to all connectors
|
||||
|
|
|
@ -616,9 +616,15 @@ public class Request implements HttpServletRequest
|
|||
*/
|
||||
public String getLocalName()
|
||||
{
|
||||
if (_endp==null)
|
||||
return null;
|
||||
if (_dns)
|
||||
return _endp==null?null:_endp.getLocalHost();
|
||||
return _endp==null?null:_endp.getLocalAddr();
|
||||
return _endp.getLocalHost();
|
||||
|
||||
String local = _endp.getLocalAddr();
|
||||
if (local.indexOf(':')>=0)
|
||||
local="["+local+"]";
|
||||
return local;
|
||||
}
|
||||
|
||||
/* ------------------------------------------------------------ */
|
||||
|
|
Loading…
Reference in New Issue