chore: create uri_identifier module in parser

This commit is contained in:
Keivan-sf
2023-10-10 15:01:12 +03:30
parent 3d114db44b
commit fc65da6458
3 changed files with 83 additions and 78 deletions

View File

@@ -1,18 +1,5 @@
use std::process::exit;
mod parser;
fn main() {
let protocol = parser::get_uri_protocol("vmess://");
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);
}
}
parser::parse("vmess://test");
}