Merge pull request #2997 from StarOfService/global-block-ip-ua-ref

Provide possibility to block IPs, User-Agents and Referers globally
This commit is contained in:
k8s-ci-robot 2018-09-25 05:51:56 -07:00 committed by GitHub
commit 6393ca6aaf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 263 additions and 0 deletions

View file

@ -141,6 +141,7 @@ var (
"contains": strings.Contains,
"hasPrefix": strings.HasPrefix,
"hasSuffix": strings.HasSuffix,
"trimSpace": strings.TrimSpace,
"toUpper": strings.ToUpper,
"toLower": strings.ToLower,
"formatIP": formatIP,