Skip to content

Commit

Permalink
glitch
Browse files Browse the repository at this point in the history
  • Loading branch information
fabriziosalmi committed Feb 1, 2025
1 parent 40d0233 commit f01d59c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions caddywaf.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ var (
)

// Add or update the version constant as needed
const wafVersion = "v0.0.2" // update this value to the new release version when tagging
const wafVersion = "v0.0.1" // update this value to the new release version when tagging

// ==================== Initialization and Setup ====================

Expand Down Expand Up @@ -168,7 +168,7 @@ func (m *Middleware) Provision(ctx caddy.Context) error {
m.geoIPStats = make(map[string]int64)

// Configure GeoIP-based country blocking/whitelisting
if (m.CountryBlock.Enabled || m.CountryWhitelist.Enabled) {
if m.CountryBlock.Enabled || m.CountryWhitelist.Enabled {
geoIPPath := m.CountryBlock.GeoIPDBPath
if m.CountryWhitelist.Enabled && m.CountryWhitelist.GeoIPDBPath != "" {
geoIPPath = m.CountryWhitelist.GeoIPDBPath
Expand Down

0 comments on commit f01d59c

Please sign in to comment.