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

Commit 21c390a

Browse files
sergsolovyev0ndi
authored andcommitted
val >= 0, val <= 65535
1 parent 1d363b7 commit 21c390a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gcore/utils.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,7 @@ func secGroupUniqueID(i interface{}) int {
508508

509509
func validatePortRange(v interface{}, path cty.Path) diag.Diagnostics {
510510
val := v.(int)
511-
if val > minPort && val < maxPort {
511+
if val >= minPort && val <= maxPort {
512512
return nil
513513
}
514514
return diag.Errorf("available range %d-%d", minPort, maxPort)

0 commit comments

Comments
 (0)