Merge pull request #5591 from alexlarsson/fix-expose-parsing
nat: Fix --expose protocol parsing Upstream-commit: e3d6898da1c1691b8c4ad215d0123e9d87879bcd Component: engine
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user