Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
| ... | ... |
@@ -637,7 +637,7 @@ func parsePortMap(portMap nat.PortMap) ([]*api.PortConfig, error) {
|
| 637 | 637 |
return nil, err |
| 638 | 638 |
} |
| 639 | 639 |
|
| 640 |
- protocol := api.ProtocolTCP |
|
| 640 |
+ var protocol api.PortConfig_Protocol |
|
| 641 | 641 |
switch strings.ToLower(parts[1]) {
|
| 642 | 642 |
case "tcp": |
| 643 | 643 |
protocol = api.ProtocolTCP |