Skip to content
This repository was archived by the owner on Mar 16, 2024. It is now read-only.

Commit 23546b4

Browse files
authored
Merge pull request #2464 from thedadams/host-port-start-digit
fix: allow hostname to start with number when binding
2 parents a0bdfd8 + b1b1a65 commit 23546b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/apis/internal.acorn.io/v1/ports.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
)
99

1010
var (
11-
nameRegexp = regexp.MustCompile("^[a-z][-a-z0-9.]+$")
11+
nameRegexp = regexp.MustCompile("^[a-z0-9][-a-z0-9.]+$")
1212
)
1313

1414
func validProto(p string) (Protocol, bool) {

0 commit comments

Comments
 (0)