Skip to content

Commit

Permalink
Update control-plane/api-gateway/common/translation.go
Browse files Browse the repository at this point in the history
Co-authored-by: Nathan Coleman <nathan.coleman@hashicorp.com>
  • Loading branch information
missylbytes and nathancoleman committed Aug 8, 2023
1 parent b7adcf9 commit 73b9029
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion control-plane/api-gateway/common/translation.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ func (t ResourceTranslator) toAPIGatewayListener(gateway gwv1beta1.Gateway, list

func ToContainerPort(portNumber gwv1beta1.PortNumber) int {
// We don't want to use privileged ports, they require root access.
// Add 2000 to any port less than 2000. This is consistent with other gateways.
// Add 2000 to any port less than 1024. This is consistent with other gateways in the market.
if portNumber < 1024 {
return int(portNumber) + 2000
}
Expand Down

0 comments on commit 73b9029

Please sign in to comment.