Skip to content

Commit

Permalink
validate.PortNubmer() min port is now 1
Browse files Browse the repository at this point in the history
  • Loading branch information
katbyte committed Aug 9, 2018
1 parent 9a2f801 commit f3b5ad1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions azurerm/helpers/validate/network.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ func PortNumber(i interface{}, k string) (_ []string, errors []error) {
return
}

if v < 0 || 65535 < v {
if v < 1 || 65535 < v {
errors = append(errors, fmt.Errorf("%q is not a valid port number: %q", k, i))
}

return
}
}

0 comments on commit f3b5ad1

Please sign in to comment.