mirror of
https://github.com/portainer/portainer.git
synced 2025-07-22 06:49:40 +02:00
Adding protocol select menu in portBinding during container creation
This commit is contained in:
parent
c0ae0d8d3f
commit
cad8a6dc91
2 changed files with 7 additions and 0 deletions
|
@ -83,6 +83,9 @@ function($scope, $routeParams, $location, Container, Messages, containernameFilt
|
|||
var PortBindings = {};
|
||||
config.HostConfig.PortBindings.forEach(function(portBinding) {
|
||||
var intPort = portBinding.intPort + "/tcp";
|
||||
if (portBinding.protocol === "udp") {
|
||||
intPort = portBinding.intPort + "/udp";
|
||||
}
|
||||
var binding = {
|
||||
HostIp: portBinding.ip,
|
||||
HostPort: portBinding.extPort
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue