mirror of
https://github.com/house-of-vanity/v2-uri-parser.git
synced 2025-12-16 15:07:53 +00:00
chore: change vless uri error message
This commit is contained in:
@@ -44,7 +44,7 @@ pub fn get_vless_data(uri: &str) {
|
|||||||
pub fn parse_vless_address(raw_data: &str) -> VlessAddress {
|
pub fn parse_vless_address(raw_data: &str) -> VlessAddress {
|
||||||
let (uuid, raw_address): (String, &str) = match raw_data.split_once("@") {
|
let (uuid, raw_address): (String, &str) = match raw_data.split_once("@") {
|
||||||
None => {
|
None => {
|
||||||
println!("Wrong vless format, no `@` in the authentication");
|
println!("Wrong vless format, no `@` found in the address");
|
||||||
exit(0);
|
exit(0);
|
||||||
}
|
}
|
||||||
Some(data) => (String::from(data.0), data.1),
|
Some(data) => (String::from(data.0), data.1),
|
||||||
|
|||||||
Reference in New Issue
Block a user