Skip to content

Commit

Permalink
Fixes #6410 - Use SocketAddress instead of InetSocketAddress.
Browse files Browse the repository at this point in the history
Fixed handling of the LOCAL command: everything past it must be ignored as per specification.

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
  • Loading branch information
sbordet committed Jun 15, 2021
1 parent f34c541 commit 6fea335
Showing 1 changed file with 0 additions and 2 deletions.
Expand Up @@ -572,8 +572,6 @@ private void parseBodyAndUpgrade() throws IOException
EndPoint endPoint = getEndPoint();
if (_local)
{
if (_family != Family.UNSPEC)
throw new IllegalStateException();
_buffer.position(_buffer.position() + _length);
proxyEndPoint = new ProxyEndPoint(endPoint, endPoint.getLocalSocketAddress(), endPoint.getRemoteSocketAddress());
}
Expand Down

0 comments on commit 6fea335

Please sign in to comment.