mirror of
https://github.com/house-of-vanity/v2-uri-parser.git
synced 2025-12-16 23:17:53 +00:00
feat: recognize different protocols
This commit is contained in:
@@ -2,7 +2,7 @@ use std::process::exit;
|
||||
|
||||
mod parser;
|
||||
fn main() {
|
||||
let protocol = parser::get_uri_format("vmess://");
|
||||
let protocol = parser::get_uri_protocol("vmess://");
|
||||
match protocol {
|
||||
Some(parser::protocols::Vless) => {
|
||||
println!("The protocol was Vless");
|
||||
|
||||
Reference in New Issue
Block a user