From b4812066c9d9a97c76983949a46c721d684408c1 Mon Sep 17 00:00:00 2001 From: Tyagiquamar Date: Mon, 12 Oct 2026 18:18:14 +0530 Subject: [PATCH] fix(blueprints): allow underscores in health check hostnames --- server/lib/blueprints/types.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/lib/blueprints/types.ts b/server/lib/blueprints/types.ts index 0a570ca8b..36175e059 100644 --- a/server/lib/blueprints/types.ts +++ b/server/lib/blueprints/types.ts @@ -47,7 +47,7 @@ const healthCheckHostnameSchema = z return true; } const hostnameRegex = - /^(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)*[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?$/; + /^(?:[a-zA-Z0-9_](?:[a-zA-Z0-9_-]{0,61}[a-zA-Z0-9_])?\.)*[a-zA-Z0-9_](?:[a-zA-Z0-9_-]{0,61}[a-zA-Z0-9_])?$/; return hostnameRegex.test(val); }, {