Skip to content

Commit 231e814

Browse files
authored
chore: Remove binding of ports to IPv4 only (#1363)
1 parent ae50c59 commit 231e814

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Testcontainers/Clients/ContainerConfigurationConverter.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,9 +148,8 @@ public ToPortBindings()
148148

149149
public override IEnumerable<KeyValuePair<string, IList<PortBinding>>> Convert([CanBeNull] IEnumerable<KeyValuePair<string, string>> source)
150150
{
151-
// https://github.com/moby/moby/pull/41805#issuecomment-893349240.
152151
return source?.Select(portBinding => new KeyValuePair<string, IList<PortBinding>>(
153-
GetQualifiedPort(portBinding.Key), new[] { new PortBinding { HostIP = IPAddress.Any.ToString(), HostPort = portBinding.Value } }));
152+
GetQualifiedPort(portBinding.Key), new[] { new PortBinding { HostPort = portBinding.Value } }));
154153
}
155154
}
156155
}

0 commit comments

Comments
 (0)