Skip to content

Commit

Permalink
fix default allows for the privateIP functionality to work
Browse files Browse the repository at this point in the history
  • Loading branch information
Ulexus committed Nov 1, 2023
1 parent 38c754b commit ce7b0b5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugin_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit ce7b0b5

Please sign in to comment.