Skip to content

Commit

Permalink
chore: Remove binding of ports to IPv4 only (#1363)
Browse files Browse the repository at this point in the history
  • Loading branch information
daviian authored Feb 7, 2025
1 parent ae50c59 commit 231e814
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -148,9 +148,8 @@ public ToPortBindings()

public override IEnumerable<KeyValuePair<string, IList<PortBinding>>> Convert([CanBeNull] IEnumerable<KeyValuePair<string, string>> source)
{
// https://github.com/moby/moby/pull/41805#issuecomment-893349240.
return source?.Select(portBinding => new KeyValuePair<string, IList<PortBinding>>(
GetQualifiedPort(portBinding.Key), new[] { new PortBinding { HostIP = IPAddress.Any.ToString(), HostPort = portBinding.Value } }));
GetQualifiedPort(portBinding.Key), new[] { new PortBinding { HostPort = portBinding.Value } }));
}
}
}
Expand Down

0 comments on commit 231e814

Please sign in to comment.