Skip to main content

proxychains_masq/proxy/
raw.rs

1use anyhow::Result;
2
3use super::{BoxStream, Target};
4
5/// RAW proxy: no handshake, the stream is forwarded as-is.
6///
7/// This is a no-op that returns the stream unchanged, used when the proxy
8/// is configured as `raw` type.
9pub async fn connect(stream: BoxStream, _target: &Target) -> Result<BoxStream> {
10    Ok(stream)
11}