Relax monitor URL validation for Docker and local hostnames (fixes #2605)

This commit is contained in:
Yasir Rafique committed 2025-07-18 11:40:20 +01:00
1 parent 066df2c64f
commit b823f0f7db
2 files changed
+47 -2

No files matched your search

+1 -1
View File
@@ -130,7 +130,7 @@ const monitorValidation = joi.object({
.custom((value, helpers) => {
const noProtocol = value.replace(/^(https?:\/\/)/, "");
if (/^[a-zA-Z0-9-]+(:\d{1,5})?$/.test(noProtocol)) {
if (/^[a-zA-Z0-9.-]+(:\d{1,5})?$/.test(noProtocol)) {
return value;
}