mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #1391 from sanimej/ingress
Fix a panic introduced by #1389
This commit is contained in:
commit
d49a6689cf
1 changed files with 4 additions and 1 deletions
|
@ -567,7 +567,10 @@ func (sb *sandbox) ResolveName(name string, ipType int) ([]net.IP, bool) {
|
|||
newList := []*endpoint{}
|
||||
if !sb.controller.isDistributedControl() {
|
||||
newList = append(newList, getDynamicNwEndpoints(epList)...)
|
||||
newList = append(newList, getIngressNwEndpoint(epList))
|
||||
ingressEP := getIngressNwEndpoint(epList)
|
||||
if ingressEP != nil {
|
||||
newList = append(newList, ingressEP)
|
||||
}
|
||||
newList = append(newList, getLocalNwEndpoints(epList)...)
|
||||
epList = newList
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue