Skip to content

Commit

Permalink
adjust abuse checks
Browse files Browse the repository at this point in the history
  • Loading branch information
nikooo777 committed Jul 10, 2023
1 parent 3aaaa97 commit b14eb68
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions firewall/firewall.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ var whitelist = map[string]bool{
}

func IsIpAbusingResources(ip string, endpoint string) (bool, int) {
if ip == "" {
return false, 0
}
if whitelist[ip] {
return false, 0
}
Expand Down

0 comments on commit b14eb68

Please sign in to comment.