mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #5591 from alexlarsson/fix-expose-parsing
nat: Fix --expose protocol parsing
This commit is contained in:
commit
e3d6898da1
1 changed files with 1 additions and 1 deletions
|
@ -69,7 +69,7 @@ func SplitProtoPort(rawPort string) (string, string) {
|
|||
if l == 1 {
|
||||
return "tcp", rawPort
|
||||
}
|
||||
return parts[0], parts[1]
|
||||
return parts[1], parts[0]
|
||||
}
|
||||
|
||||
// We will receive port specs in the format of ip:public:private/proto and these need to be
|
||||
|
|
Loading…
Add table
Reference in a new issue