Commit dfa60b1
committed
Accept port 1 when validating published port ranges
The lower bound for a published port range was checked with a strict
greater-than, so port 1 was reported as an invalid range on both the host
and container sides. TCP and UDP port numbers start at 1.
Port 0 remains rejected, since it means "any port" rather than a specific
one.
Fixes #20141 parent d1d7635 commit dfa60b1
2 files changed
Lines changed: 11 additions & 2 deletions
File tree
- Sources/Services/ContainerAPIService/Client
- Tests/ContainerAPIClientTests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
701 | 701 | | |
702 | 702 | | |
703 | 703 | | |
704 | | - | |
| 704 | + | |
705 | 705 | | |
706 | 706 | | |
707 | 707 | | |
708 | 708 | | |
709 | 709 | | |
710 | | - | |
| 710 | + | |
711 | 711 | | |
712 | 712 | | |
713 | 713 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
111 | 120 | | |
112 | 121 | | |
113 | 122 | | |
| |||
0 commit comments