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:
commit
c7bf58cf47
1 changed files with 8 additions and 0 deletions
|
@ -971,6 +971,14 @@ func (eh epHeap) Less(i, j int) bool {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if epi.getNetwork().Internal() {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
|
if epj.getNetwork().Internal() {
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
|
||||||
if ci != nil {
|
if ci != nil {
|
||||||
cip, ok = ci.epPriority[eh[i].ID()]
|
cip, ok = ci.epPriority[eh[i].ID()]
|
||||||
if !ok {
|
if !ok {
|
||||||
|
|
Loading…
Add table
Reference in a new issue