Skip to content

Commit dfbbde4

Browse files
committed
Fix default gw logic for internal networks
Signed-off-by: Alessandro Boch <aboch@docker.com>
1 parent 0985e5d commit dfbbde4

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

sandbox.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -971,6 +971,14 @@ func (eh epHeap) Less(i, j int) bool {
971971
return true
972972
}
973973

974+
if epi.getNetwork().Internal() {
975+
return false
976+
}
977+
978+
if epj.getNetwork().Internal() {
979+
return true
980+
}
981+
974982
if ci != nil {
975983
cip, ok = ci.epPriority[eh[i].ID()]
976984
if !ok {

0 commit comments

Comments
 (0)