masquerade-proxy 0.1.0

A implementation of MASQUE based on RFC 9114, 9227, and 9228
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use masquerade_proxy::server::Server;

use std::env;
use std::error::Error;

#[tokio::main]
async fn main() -> Result<(), Box<dyn Error>> {
    env_logger::builder().format_timestamp_millis().init();
    
    let bind_addr = env::args()
        .nth(1)
        .unwrap_or_else(|| "127.0.0.1:4433".to_string());
    
    let mut server = Server::new();
    server.bind(bind_addr).await?;

    server.run().await
}