@@ -38,6 +38,7 @@ public Map<PortMapping, PortBinding> allocate(final List<PortMapping> portMappin
38
38
var lastUdpPort = portAllocations .getUdp ().contains (lastTcpPort ) ? generatePort (min , max , portAllocations .getUdp ()) : lastTcpPort ;
39
39
40
40
for (final var portMapping : portMappings ) {
41
+ System .out .println (portMapping );
41
42
switch (portMapping .getProtocol ()) {
42
43
case "tcp" : {
43
44
portBindings .put (portMapping , new PortBinding (new Ports .Binding ("0.0.0.0" , lastTcpPort + "/tcp" ),
@@ -53,9 +54,11 @@ public Map<PortMapping, PortBinding> allocate(final List<PortMapping> portMappin
53
54
while (portAllocations .getTcp ().contains (lastUdpPort )) {
54
55
lastUdpPort = generatePort (min , max , portAllocations .getUdp ());
55
56
}
56
- portBindings .put (portMapping , new PortBinding (new Ports .Binding ("0.0.0.0" , lastUdpPort + "/udp" ),
57
+ portBindings .put (new PortMapping (portMapping .getPort (), "tcp" , portMapping .isAdvertise ()),
58
+ new PortBinding (new Ports .Binding ("0.0.0.0" , lastUdpPort + "/udp" ),
57
59
new ExposedPort (portMapping .getPort (), InternetProtocol .UDP )));
58
- portBindings .put (portMapping , new PortBinding (new Ports .Binding ("0.0.0.0" , lastUdpPort + "/tcp" ),
60
+ portBindings .put (new PortMapping (portMapping .getPort (), "udp" , portMapping .isAdvertise ()),
61
+ new PortBinding (new Ports .Binding ("0.0.0.0" , lastUdpPort + "/tcp" ),
59
62
new ExposedPort (portMapping .getPort (), InternetProtocol .TCP )));
60
63
break ;
61
64
}
0 commit comments