feat: allow for dash substitute over slash for environments like kubernetes

This commit is contained in:
Stavros
2025-09-02 17:47:29 +03:00
parent ca772ed24f
commit b6bc3d0020
2 changed files with 2 additions and 0 deletions

View File

@@ -46,6 +46,8 @@ func GetBasicAuth(username string, password string) string {
} }
func FilterIP(filter string, ip string) (bool, error) { func FilterIP(filter string, ip string) (bool, error) {
filter = strings.Replace(filter, "-", "/", -1)
ipAddr := net.ParseIP(ip) ipAddr := net.ParseIP(ip)
if strings.Contains(filter, "/") { if strings.Contains(filter, "/") {