Skip to content

Commit

Permalink
fix 代理认证校验
Browse files Browse the repository at this point in the history
  • Loading branch information
louis-zhou committed Mar 3, 2024
1 parent 067636e commit 8c6ab11
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 8c6ab11

Please sign in to comment.