Relax monitor URL validation for Docker and local hostnames (fixes #2605)
This commit is contained in:
1 parent
066df2c64f
commit
b823f0f7db
2 files changed
+47
-2
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user