Skip to content

Commit

Permalink
Merge pull request #12 from louis-zhou/fixbug-http-proxy-auth
Browse files Browse the repository at this point in the history
fix 代理认证校验
  • Loading branch information
tickbh authored Mar 4, 2024
2 parents 067636e + 8c6ab11 commit 6088bd4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ Cargo.lock
/key
.cargo
/logs/*.log
wmproxy.md
wmproxy.md
.DS_Store
2 changes: 1 addition & 1 deletion src/proxy/http.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ impl Operate {
if up.len() != 2 {
return false;
}
if up[0] == self.username.as_ref().unwrap() ||
if up[0] == self.username.as_ref().unwrap() &&
up[1] == self.password.as_ref().unwrap() {
return true;
}
Expand Down

0 comments on commit 6088bd4

Please sign in to comment.