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

Merge pull request #1143 from aboch/sec

Fix default gw logic for internal networks
This commit is contained in:
Jana Radhakrishnan 2016-04-29 11:53:29 -07:00
commit c7bf58cf47

View file

@ -971,6 +971,14 @@ func (eh epHeap) Less(i, j int) bool {
return true
}
if epi.getNetwork().Internal() {
return false
}
if epj.getNetwork().Internal() {
return true
}
if ci != nil {
cip, ok = ci.epPriority[eh[i].ID()]
if !ok {