diff options
Diffstat (limited to 'pkg/spec')
-rw-r--r-- | pkg/spec/createconfig.go | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/pkg/spec/createconfig.go b/pkg/spec/createconfig.go index 6a7ddc1ae..41030bf26 100644 --- a/pkg/spec/createconfig.go +++ b/pkg/spec/createconfig.go @@ -492,10 +492,7 @@ func (c *CreateConfig) CreatePortBindings() ([]ocicni.PortMapping, error) { } pm.HostPort = int32(hostPort) - // CNI requires us to make both udp and tcp structs - pm.Protocol = "udp" - portBindings = append(portBindings, pm) - pm.Protocol = "tcp" + pm.Protocol = containerPb.Proto() portBindings = append(portBindings, pm) } } |