Skip to content

Commit

Permalink
fix: lb auth (reruin#252)
Browse files Browse the repository at this point in the history
  • Loading branch information
reruin committed Aug 23, 2020
1 parent bf31dc0 commit 81199a7
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions app/plugins/cmd.core.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,9 +188,15 @@ module.exports = ({ cache , getVendor , getConfig , getRuntime , updateFolder ,
}
}
else if(t.type == 'redir') {
hit = await process_fast(t.path)
//不再参与后续
break;
hit = await process_fast(t.path , (d , p) => {
let t = [...p]
t[idx] = paths[idx]
if(filter && filter(d , t)){
return hit;
}
})

return hit
}
else{
hit = await updateFile(t)
Expand Down

0 comments on commit 81199a7

Please sign in to comment.