Skip to content

Commit

Permalink
The default masker is adjusted to github.com
Browse files Browse the repository at this point in the history
  • Loading branch information
mohanson committed Jul 10, 2024
1 parent 6d158b4 commit 802d5b4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion protocol/baboon/engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ var Conf = struct {
// that you are using a proxy server.
Masker string
}{
Masker: "https://www.zhihu.com",
Masker: "https://github.com/",
}

// Server implemented the baboon protocol.
Expand Down
2 changes: 1 addition & 1 deletion protocol/baboon/engine_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ func TestProtocolBaboonMasker(t *testing.T) {
if len(body) == 0 {
t.FailNow()
}
if !bytes.Contains(body, []byte("zhihu")) {
if !bytes.Contains(body, []byte("github")) {
t.FailNow()
}
}

0 comments on commit 802d5b4

Please sign in to comment.