Hi, i'm trying to connect to a FTP server over a SOCKS5 proxy. Connecting works fine.
I just connect with FtpStream::connect_with_stream(stream.into_inner())? where stream is my SOCKS5 TcpStream.
The problem is now: In passive mode, when i want to retrieve a file, the connection to the server is not done via the proxy (provided TcpStream).
It instantiates a new TcpStream internally.
Is there a way to achieve connecting over a custom provided TcpStream when doing retr_as_stream?
Best regards,
Mark
The implementation consists in being able to provide a Fn to set the TcpStream from the SocketAddr when passive mode is initialized.
The implementation consists in being able to provide a
Fn
to set theTcpStream
from theSocketAddr
when passive mode is initialized.