323464 IPv6 localhost
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@2227 7e9141cc-0065-0410-87d8-b60c137991c4
This commit is contained in:
parent
ae061725da
commit
2dcf4b2c43
|
@ -622,7 +622,7 @@ public class Request implements HttpServletRequest
|
|||
return _endp.getLocalHost();
|
||||
|
||||
String local = _endp.getLocalAddr();
|
||||
if (local.indexOf(':')>=0)
|
||||
if (local!=null && local.indexOf(':')>=0)
|
||||
local="["+local+"]";
|
||||
return local;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue