Skip to content

Commit

Permalink
checkpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
rodaine committed Feb 12, 2024
1 parent a40c7ce commit 8855bd1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion celext/lib.go
Original file line number Diff line number Diff line change
Expand Up @@ -488,8 +488,11 @@ func (l lib) validateIPPrefix(p string, ver int64, strict bool) bool {
}

func (l lib) isHostAndPort(val string, portRequired bool) bool {
splitIdx := strings.LastIndexByte(val, ':')
if len(val) == 0 {
return false
}

splitIdx := strings.LastIndexByte(val, ':')
if val[0] == '[' { // ipv6
end := strings.IndexByte(val, ']')
switch end + 1 {
Expand Down

0 comments on commit 8855bd1

Please sign in to comment.