Skip to content

Commit

Permalink
allow unknown country IPs to continue being processed
Browse files Browse the repository at this point in the history
  • Loading branch information
Ulexus committed Nov 1, 2023
1 parent e71fca6 commit 38c754b
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -170,10 +170,6 @@ func (p Plugin) CheckAllowed(ip string) (allow bool, country string, err error)
return false, ip, fmt.Errorf("lookup of %s failed: %w", ip, err)
}

if country == "-" {
return p.allowPrivate, country, nil
}

if country != "-" {
for _, item := range p.blockedCountries {
if item == country {
Expand Down

0 comments on commit 38c754b

Please sign in to comment.