Skip to content

Commit d0b2f61

Browse files
committed
Revert "WIP: fix tests using bare port-numbers"
This reverts commit ae9e27b. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
1 parent 2f0970c commit d0b2f61

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

cli/compose/loader/loader.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -917,10 +917,6 @@ var transformStringToDuration TransformerFunc = func(value any) (any, error) {
917917
}
918918

919919
func toServicePortConfigs(value string) ([]any, error) {
920-
// If no host-port is specified, historically, we included it as "ephemeral port"
921-
if value != "" && !strings.Contains(value, ":") {
922-
value = "0:" + value
923-
}
924920
// short syntax ([ip:]public:private[/proto])
925921
//
926922
// TODO(thaJeztah): we need an equivalent that handles the "ip-address" part without depending on the nat package.

0 commit comments

Comments
 (0)