mirror of
https://github.com/house-of-vanity/v2-uri-parser.git
synced 2025-12-15 22:47:52 +00:00
Fix vmess wrong name
This commit is contained in:
@@ -19,7 +19,7 @@ fn get_raw_data_from_base64(decoded_base64: &Vec<u8>) -> RawData {
|
|||||||
let json = serde_json::from_str::<Value>(json_str).unwrap();
|
let json = serde_json::from_str::<Value>(json_str).unwrap();
|
||||||
|
|
||||||
return RawData {
|
return RawData {
|
||||||
remarks: get_str_field(&json, "id").unwrap_or(String::from("")),
|
remarks: get_str_field(&json, "ps").unwrap_or(String::from("")),
|
||||||
uuid: get_str_field(&json, "id"),
|
uuid: get_str_field(&json, "id"),
|
||||||
port: get_str_field(&json, "port")
|
port: get_str_field(&json, "port")
|
||||||
.and_then(|s| Some(s.parse::<u16>().expect("port is not a number"))),
|
.and_then(|s| Some(s.parse::<u16>().expect("port is not a number"))),
|
||||||
|
|||||||
Reference in New Issue
Block a user