Files
v2ray-proxy/src/main.rs

19 lines
423 B
Rust
Raw Normal View History

2023-10-08 20:46:52 +03:30
use std::process::exit;
mod parser;
2023-10-06 18:16:44 +03:30
fn main() {
2023-10-09 17:59:25 +03:30
let protocol = parser::get_uri_protocol("vmess://");
2023-10-08 20:46:52 +03:30
match protocol {
Some(parser::protocols::Vless) => {
println!("The protocol was Vless");
}
Some(_) => {
println!("Some recognizable protocol")
}
None => {
println!("The protocol is not supported");
exit(0);
}
}
2023-10-06 18:16:44 +03:30
}