Skip to content

Commit

Permalink
Merge pull request loxilb-io#893 from TrekkieCoder/main
Browse files Browse the repository at this point in the history
one-arm: Tweaked source selection for end-point
  • Loading branch information
UltraInstinct14 authored Dec 1, 2024
2 parents 200b6b9 + 4a6bfa7 commit 86a0680
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion loxilb-ebpf
2 changes: 1 addition & 1 deletion pkg/loxinet/rules.go
Original file line number Diff line number Diff line change
Expand Up @@ -1183,7 +1183,7 @@ func (R *RuleH) electEPSrc(r *ruleEnt) bool {
}
}

if !np.rIP.Equal(sip) {
if !np.rIP.Equal(sip) || r.addrRslv && !addrRslv {
np.rIP = sip
chg = true
tk.LogIt(tk.LogDebug, "%s:suitable source for %s: %s\n", mode, np.xIP.String(), np.rIP.String())
Expand Down

0 comments on commit 86a0680

Please sign in to comment.