Add tests on IPWhiteLister.
This commit is contained in:
parent
1537861c61
commit
5921909ef5
2 changed files with 130 additions and 1 deletions
|
@ -32,7 +32,7 @@ func NewIPWhiteLister(whiteList []string, useXForwardedFor bool) (*IPWhiteLister
|
|||
whiteLister.whiteLister = ip
|
||||
|
||||
whiteLister.handler = negroni.HandlerFunc(whiteLister.handle)
|
||||
log.Debugf("configured %u IP white list: %s", len(whiteList), whiteList)
|
||||
log.Debugf("configured IP white list: %s", whiteList)
|
||||
|
||||
return &whiteLister, nil
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue