Skip to content

Commit 426f976

Browse files
committed
fix: port typo
Signed-off-by: cong <q1875486458@gmail.com>
1 parent 3ba1db8 commit 426f976

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

internal/ir/infra.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ import (
1717
)
1818

1919
const (
20-
DefaultProxyName = "default"
20+
DefaultProxyName = "default"
21+
MaxPort int32 = 65535
2122
)
2223

2324
// Infra defines managed infrastructure.
@@ -224,10 +225,10 @@ func (p *ProxyInfra) Validate() error {
224225
if len(listener.Ports[j].Name) == 0 {
225226
errs = append(errs, errors.New("listener name field required"))
226227
}
227-
if listener.Ports[j].ServicePort < 1 || listener.Ports[j].ServicePort > 65353 {
228+
if listener.Ports[j].ServicePort < 1 || listener.Ports[j].ServicePort > MaxPort {
228229
errs = append(errs, errors.New("listener service port must be a valid port number"))
229230
}
230-
if listener.Ports[j].ContainerPort < 1 || listener.Ports[j].ContainerPort > 65353 {
231+
if listener.Ports[j].ContainerPort < 1 || listener.Ports[j].ContainerPort > MaxPort {
231232
errs = append(errs, errors.New("listener container port must be a valid port number"))
232233
}
233234
}

release-notes/current.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ security updates: |
1010
new features: |
1111
1212
bug fixes: |
13-
13+
- Fixed Listener port limit typo 65353 -> 65535.
1414
# Enhancements that improve performance.
1515
performance improvements: |
1616

0 commit comments

Comments
 (0)