From 5db785f52b3203d33d262429fbed5b905fa452b5 Mon Sep 17 00:00:00 2001 From: Connor Wright Date: Sun, 29 Nov 2020 22:14:45 +0000 Subject: [PATCH] update example --- blacklist.go | 1 - example/main.go | 1 - 2 files changed, 2 deletions(-) diff --git a/blacklist.go b/blacklist.go index 39fba5e..335fed4 100644 --- a/blacklist.go +++ b/blacklist.go @@ -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 diff --git a/example/main.go b/example/main.go index 2b56c8f..7b6c2b8 100644 --- a/example/main.go +++ b/example/main.go @@ -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,