chore: imrpove vless error

This commit is contained in:
Keivan-sf
2023-10-10 19:30:44 +03:30
parent 9dbe84e617
commit 9813811c4f

View File

@@ -46,7 +46,7 @@ pub fn parse_vless_uui_and_host(raw_data: &str) -> VlessUUIDAndHost {
}
Some(data) => (
String::from(data.0),
data.1.parse::<u16>().expect("Port is not a number"),
data.1.parse::<u16>().expect("Wrong vless format, port is not a number"),
),
};
return VlessUUIDAndHost { uuid, host, port };