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 3c5d8a5 commit 531170f
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 @@ -116,7 +116,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.
// We don't want to use privileged ports, they require privileged access.
// 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 531170f

Please sign in to comment.