fix: fix some issues

This commit is contained in:
2025-05-04 03:59:59 +08:00
parent 3fe0538468
commit f245a68790
13 changed files with 99 additions and 36 deletions

View File

@@ -5,7 +5,7 @@ lazy_static! {
serde_json::from_str::<Vec<String>>(include_str!("./ua.json")).unwrap();
}
pub fn get_random_mobile_ua() -> &'static str {
pub fn get_random_ua() -> &'static str {
DEFAULT_HTTP_CLIENT_USER_AGENT[fastrand::usize(0..DEFAULT_HTTP_CLIENT_USER_AGENT.len())]
.as_str()
}