As a suggestion, it would be handy if SendV4Response/SendV5Response were publicly accessible in IdSocksServer.pas. This would make it easier for TIdEventSocksServer to send replies in the OnCommandConnect event. As it stands, the user has to mess around with raw bytes and socks versions. Even better might be a simple TIdEventSocksServer.Reply(status) that will do the right thing regardless of the SOCKS version of the client.
From VA1DER (Kurt Fitzner) on Gitter: