mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Fix a minor but in utils parsing UDP/TCP ports
Signed-off-by: Madhu Venugopal <madhu@docker.com>
This commit is contained in:
parent
76ac418c43
commit
30e2ee9793
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue