Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redirect stdio over tokio_native_tls in Rust #33

Open
localacct opened this issue Oct 26, 2020 · 0 comments
Open

Redirect stdio over tokio_native_tls in Rust #33

localacct opened this issue Oct 26, 2020 · 0 comments

Comments

@localacct
Copy link

Hi

Sorry if this is not the right place to ask this question. I am trying to replicate the ncat's "-e" function to redirect stdio to a remote ncat instance.

I was able to replicate this on tokio::net::TcpStream by using dup2 and then executing the command. I am not exactly sure how this can be done over tokio_native_tls as TlsStream does not seem to provide the file descriptors that dup2 needed.

Is there a way that stdio can be redirected over TLS?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant