From ce7b0b52cfbd80632eb675b36d9347928d4516f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Se=C3=A1n=20C=20McCord?= Date: Wed, 1 Nov 2023 19:04:21 -0400 Subject: [PATCH] fix default allows for the privateIP functionality to work --- plugin_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugin_test.go b/plugin_test.go index f9359d0..5293252 100644 --- a/plugin_test.go +++ b/plugin_test.go @@ -106,8 +106,8 @@ func TestPlugin_ServeHTTP(t *testing.T) { Enabled: true, DatabaseFilePath: dbFilePath, AllowedCountries: []string{}, - AllowPrivate: true, DisallowedStatusCode: http.StatusOK, + DefaultAllow: true, } plugin, err := New(context.TODO(), &noopHandler{}, cfg, pluginName) @@ -157,6 +157,7 @@ func TestPlugin_ServeHTTP(t *testing.T) { AllowedCountries: []string{}, AllowPrivate: false, DisallowedStatusCode: http.StatusForbidden, + DefaultAllow: false, } plugin, err := New(context.TODO(), &noopHandler{}, cfg, pluginName)