Parcourir la source

Fix a minor but in utils parsing UDP/TCP ports

Signed-off-by: Madhu Venugopal <madhu@docker.com>
Madhu Venugopal il y a 10 ans
Parent
commit
30e2ee9793
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      libnetwork/netutils/utils.go

+ 2 - 2
libnetwork/netutils/utils.go

@@ -114,9 +114,9 @@ func ParseProtocol(s string) Protocol {
 	case "icmp":
 		return 1
 	case "udp":
-		return 6
-	case "tcp":
 		return 17
+	case "tcp":
+		return 6
 	default:
 		return 0
 	}