Skip to content

Commit b024d5f

Browse files
committed
feat: allow for dash substitute in ip filters for environments like kubernetes
1 parent 773cd6d commit b024d5f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

internal/utils/security_utils.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@ func CheckFilter(filter string, str string) bool {
7373
return true
7474
}
7575

76+
filter = strings.Replace(filter, "-", "/", -1)
77+
7678
if strings.HasPrefix(filter, "/") && strings.HasSuffix(filter, "/") {
7779
re, err := regexp.Compile(filter[1 : len(filter)-1])
7880
if err != nil {

0 commit comments

Comments
 (0)