Write a v2ray core for fun
an Asynchronous proxy implement with http / socks5 in-bound and vmess out-bound, written in Rust and tokio
{
"port": 18002,
"proxy_type" : "socks",
"proxy_dist" : "ip:port",
"uuid" : "uuid of vmess proxy server"
}
- run the code
$ cargo run ./config.json
- compile
$ cargo build --release
- This program draws from the ylxdzsw's v2socks and here rewrite it into an Asynchronous one
- Socks5 inbound proxy is done. Http inbound only completes the part where the target server is ipv4. It is tested by cURL:
$ curl --proxy 127.0.0.1:18002 $destip