Skip to content

Commit 0c4e04c

Browse files
committed
Merge pull request #1143 from aboch/sec
Fix default gw logic for internal networks
2 parents 15f8dc4 + dfbbde4 commit 0c4e04c

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)