Merge pull request #1618 from bluewave-labs/fix/monitor-validation-regex

fix: remove local IP address exclusion from moniotr validation regex
This commit is contained in:
Alexander Holliday authored and GitHub committed 2025-01-23 11:42:01 -08:00
commit 8ff101dca1
1 file changed
-5
-5
View File
@@ -103,11 +103,6 @@ const monitorValidation = joi.object({
"(?:(?:https?|ftp):\\/\\/)?" +
// user:pass BasicAuth (optional)
"(?:" +
// IP address exclusion
// private & local networks
"(?!(?:10|127)(?:\\.\\d{1,3}){3})" +
"(?!(?:169\\.254|192\\.168)(?:\\.\\d{1,3}){2})" +
"(?!172\\.(?:1[6-9]|2\\d|3[0-1])(?:\\.\\d{1,3}){2})" +
// IP address dotted notation octets
// excludes loopback network 0.0.0.0
// excludes reserved space >= 224.0.0.0