1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Fix a panic introduced by #1389

Signed-off-by: Santhosh Manohar <santhosh@docker.com>
This commit is contained in:
Santhosh Manohar 2016-08-11 17:51:13 -07:00
parent c7d98e0081
commit e28730d44b

View file

@ -567,7 +567,10 @@ func (sb *sandbox) ResolveName(name string, ipType int) ([]net.IP, bool) {
newList := []*endpoint{} newList := []*endpoint{}
if !sb.controller.isDistributedControl() { if !sb.controller.isDistributedControl() {
newList = append(newList, getDynamicNwEndpoints(epList)...) 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)...) newList = append(newList, getLocalNwEndpoints(epList)...)
epList = newList epList = newList
} }