mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Fix default gw logic for internal networks
Signed-off-by: Alessandro Boch <aboch@docker.com>
This commit is contained in:
parent
e68750e12a
commit
ff2200b397
1 changed files with 8 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue