Skip to content

Commit

Permalink
#3608, #3676: Close connection if HAProxy 2.0 message is a health check
Browse files Browse the repository at this point in the history
  • Loading branch information
Outfluencer authored Apr 28, 2024
1 parent 6335af8 commit 6e17517
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions proxy/src/main/java/net/md_5/bungee/netty/HandlerBoss.java
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,9 @@ public void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception
} );

channel.setRemoteAddress( newAddress );
} else
{
channel.close();
}
} finally
{
Expand Down

0 comments on commit 6e17517

Please sign in to comment.