" Some people would like to use pluggable transports in a context other than inside a Tor process for making
s. Right now,
#[tokio::main]async fn main() -> Result<()> {
tracing_subscriber::fmt::init();
let common_params = PtCommonParameters::builder()
.state_location("/tmp/arti-pt".into())
.build()
.unwrap();
let client_params = PtClientParameters::builder()
.transports(vec!["obfs4".parse().unwrap()])
.build()
.unwrap();
let mut pt =
PluggableClientTransport::new("./obfs4proxy".into(), vec![], common_params, client_params);
pt.launch(PreferredRuntime::current()?).await?;
loop {
info!("message: {:?}", pt.next_message().await?);
}
}
at .
which seems like it should actually work without tor.