Fix vmess wrong name

This commit is contained in:
Keivan-sf
2025-07-27 16:14:45 +03:30
parent 20554587e5
commit bc5306ca87

View File

@@ -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();
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"),
port: get_str_field(&json, "port")
.and_then(|s| Some(s.parse::<u16>().expect("port is not a number"))),