From b1b1a653ba24daec0fbd3045e7e3e26e05f114ea Mon Sep 17 00:00:00 2001 From: Donnie Adams Date: Tue, 30 Jan 2024 12:30:34 -0500 Subject: [PATCH] fix: allow hostname to start with number when binding Signed-off-by: Donnie Adams --- pkg/apis/internal.acorn.io/v1/ports.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/apis/internal.acorn.io/v1/ports.go b/pkg/apis/internal.acorn.io/v1/ports.go index 394ae0e2f..0895c2f98 100644 --- a/pkg/apis/internal.acorn.io/v1/ports.go +++ b/pkg/apis/internal.acorn.io/v1/ports.go @@ -8,7 +8,7 @@ import ( ) var ( - nameRegexp = regexp.MustCompile("^[a-z][-a-z0-9.]+$") + nameRegexp = regexp.MustCompile("^[a-z0-9][-a-z0-9.]+$") ) func validProto(p string) (Protocol, bool) {