feat: allow for dash substitute in ip filters for environments like kubernetes

This commit is contained in:
Stavros
2025-09-03 12:16:06 +03:00
parent 773cd6d171
commit b024d5ffda

View File

@@ -73,6 +73,8 @@ func CheckFilter(filter string, str string) bool {
return true
}
filter = strings.Replace(filter, "-", "/", -1)
if strings.HasPrefix(filter, "/") && strings.HasSuffix(filter, "/") {
re, err := regexp.Compile(filter[1 : len(filter)-1])
if err != nil {