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

Commit

Permalink
Merge pull request #2464 from thedadams/host-port-start-digit
Browse files Browse the repository at this point in the history
fix: allow hostname to start with number when binding
  • Loading branch information
thedadams authored Jan 30, 2024
2 parents a0bdfd8 + b1b1a65 commit 23546b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/apis/internal.acorn.io/v1/ports.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 23546b4

Please sign in to comment.