Allow publishing same port as UDP and TCP using docker stack deploy

Signed-off-by: Lex Neva <lneva@fastly.com>
This commit is contained in:
Lex Neva 2020-03-30 14:31:09 -04:00
parent 22acbbcc4b
commit 4e39c877dd
No known key found for this signature in database
GPG Key ID: 5E982CFF13AB0EDD
1 changed files with 1 additions and 1 deletions

View File

@ -111,7 +111,7 @@ func toServicePortConfigsMap(s interface{}) (map[interface{}]interface{}, error)
} }
m := map[interface{}]interface{}{} m := map[interface{}]interface{}{}
for _, p := range ports { for _, p := range ports {
m[p.Published] = p m[p] = p
} }
return m, nil return m, nil
} }