Class HAProxyConnectionInitEvent

All Implemented Interfaces:
Cancellable

public class HAProxyConnectionInitEvent extends AsyncEvent<HAProxyConnectionInitEvent> implements Cancellable
Event, called when the HAProxy message for a connection has been decoded. This event is called even earlier than ClientConnectEvent and ConnectionInitEvent, be careful when handling it.

It is called only and ONLY if the proxy has received a HAProxy message about a specific client.

The reason this event exists is that both plain BungeeCord and Waterfall's events get called on a stage, where if the proxy is running behind a HAProxy, they will give the address of the HAProxy rather than the address of the client.

This event should only and ONLY be used for mitigating layer 7 DDoS attacks, and nothing else.