hyper-proxy icon indicating copy to clipboard operation
hyper-proxy copied to clipboard

Accessing the underlying TLS stream

Open howardmoore opened this issue 4 years ago • 2 comments

Would you consider making your ProxyStream implementation public and also switching form using tokio_tls to tokio_native_tls?

The reason I'm asking is because I'd like to be able to access the underlying TLS stream of a proxied connection, to do some further validation of the server certificate. This is almost possible using the Upgrade mechanism in hyper but to downcast the hyper::upgrade::Upgraded back to its underlying stream requires your ProxyStream struct to be made public and requires it to use a tokio_native_tls::TlsStream not a tokio_tls::TlsStream as the latter doesn't allow access to the underlying native_tls stream (and also looks to be deprecated in favour of the former).

howardmoore avatar Apr 12 '20 12:04 howardmoore

yes, same as tunnel, they both helpful, please consider make them pub

lynnux avatar Apr 26 '20 09:04 lynnux

I would definitely consider it. I am on a very low bandwidth since some time now but I'd be happy to share ownership with someone if needed.

tafia avatar May 16 '20 06:05 tafia