mirror of
https://github.com/house-of-vanity/v2-uri-parser.git
synced 2025-12-16 15:07:53 +00:00
19 lines
421 B
Rust
19 lines
421 B
Rust
use std::process::exit;
|
|
|
|
mod parser;
|
|
fn main() {
|
|
let protocol = parser::get_uri_format("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);
|
|
}
|
|
}
|
|
}
|