IndySockets / Indy

Indy - Internet Direct
https://www.indyproject.org
451 stars 153 forks source link

Make it easier to send replies in TIdEventSocksServer event handlers #512

Closed rlebeau closed 2 months ago

rlebeau commented 9 months ago

From VA1DER (Kurt Fitzner) on Gitter:

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.