aboutsummaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-07-15 06:17:09 -0400
committerGitHub <noreply@github.com>2020-07-15 06:17:09 -0400
commit60127cf5e88ef53748cb601d7c27f082d284e7f4 (patch)
tree587b60265a26ae1075ed230977e382b4751eefd8 /pkg
parent76f9f96af99236731ffc5a3a408c834405b49b72 (diff)
parent758a700c114a9a30ac94981012071246f5a0e96b (diff)
downloadpodman-60127cf5e88ef53748cb601d7c27f082d284e7f4.tar.gz
podman-60127cf5e88ef53748cb601d7c27f082d284e7f4.tar.bz2
podman-60127cf5e88ef53748cb601d7c27f082d284e7f4.zip
Merge pull request #6949 from AkihiroSuda/fix-6948
Fix "Error: unrecognized protocol \"TCP\" in port mapping"
Diffstat (limited to 'pkg')
-rw-r--r--pkg/specgen/generate/ports.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/pkg/specgen/generate/ports.go b/pkg/specgen/generate/ports.go
index 9412ecfbf..c8d1c27c5 100644
--- a/pkg/specgen/generate/ports.go
+++ b/pkg/specgen/generate/ports.go
@@ -356,6 +356,7 @@ func checkProtocol(protocol string, allowSCTP bool) ([]string, error) {
splitProto := strings.Split(protocol, ",")
// Don't error on duplicates - just deduplicate
for _, p := range splitProto {
+ p = strings.ToLower(p)
switch p {
case protoTCP, "":
protocols[protoTCP] = struct{}{}