TCustomSocksWSocket.SocksDoConnect has this code for SocksLevel <> '4':

        Buf[3] := #$03;            { Address type is domain name }
        Buf[4] := AnsiChar((Length(FAddrStr)));
        { Should check buffer overflow }
        Move(AnsiString(FAddrStr)[1], Buf[5], Length(FAddrStr)); // No length change expected (ASCII)

So everything is as it should be

Is there some way I can encourage it to use the proxy for DNS resolution?
Alternatively, how can I get the remote IP address from the existing
TWSocket connection? (PeerAddr only gives me the IP of the proxy server).

Any assistance with this issue will be much appreciated.

Thanks,
Colin


--
A.S.

--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

Reply via email to