Files
v2ray-proxy/src/parser/mod.rs

20 lines
488 B
Rust
Raw Normal View History

use std::process::exit;
mod uri_identifier;
2023-10-10 16:21:20 +03:30
mod vless;
pub mod config_models;
pub fn parse(uri: &str) {
let protocol = uri_identifier::get_uri_protocol(uri);
match protocol {
Some(uri_identifier::Protocols::Vmess) => {
println!("The protocol was vmess");
}
Some(_) => {
println!("The protocol was recognized");
}
None => {
println!("The protcol is not supported");
exit(0);
}
2023-10-09 17:59:25 +03:30
}
2023-10-08 21:11:49 +03:30
}