Skip to content

Commit

Permalink
update example
Browse files Browse the repository at this point in the history
  • Loading branch information
cxnky committed Nov 29, 2020
1 parent 97dfd5e commit 5db785f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion blacklist.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import (
// If ReplaceStrings is not null, then {{key}} will be replaced by the corresponding value
// By default, there are a few replace strings which automatically get populated, such as the user's IP address
type Options struct {
Debug bool
BlockedResponse []byte
BlockedIPs []string
BlockedUserAgents []string
Expand Down
1 change: 0 additions & 1 deletion example/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ func main() {
// by default, ReplaceStrings will have {{ip}} replaced with the user's IP address (if it exists in the specified template)
// so you don't need to add that
blacklistMiddleware := blacklist.New(blacklist.Options{
Debug: true,
BlockedIPs: []string{"127.0.0.1", "::1"},
BlockedUserAgents: []string{},
ReplaceStrings: replaceValues,
Expand Down

0 comments on commit 5db785f

Please sign in to comment.