Skip to content

Commit

Permalink
fix: unlimit longer access_key
Browse files Browse the repository at this point in the history
  • Loading branch information
cxw620 authored Sep 13, 2023
1 parent 643d5d7 commit c63b55e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mods/handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ pub async fn handle_playurl_request(req: &HttpRequest, is_app: bool, is_th: bool
// detect user's access_key
params.access_key = match query.get("access_key") {
Some(key) => {
if key.len() != 32 && key.len() != 107 {
if key.len() < 32 {
error!("[GET PLAYURL] IP {client_ip} -> Detect req with invalid access_key {key}");
build_response!(EType::UserNotLoginedError);
} else {
Expand Down

0 comments on commit c63b55e

Please sign in to comment.