From 99237fb71276de2cf4189bd242fafe95b0e2d677 Mon Sep 17 00:00:00 2001 From: Trekkie Coder Date: Sat, 30 Nov 2024 21:44:19 +0900 Subject: [PATCH] one-arm: Fixed source selection for end-point when end-point is the same node --- loxilb-ebpf | 2 +- pkg/loxinet/rules.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/loxilb-ebpf b/loxilb-ebpf index 7712e779..b0edb61f 160000 --- a/loxilb-ebpf +++ b/loxilb-ebpf @@ -1 +1 @@ -Subproject commit 7712e77959e7e12d92fea42aecbc031046241cfe +Subproject commit b0edb61f1181bc5d96679e3b136074133738e37a diff --git a/pkg/loxinet/rules.go b/pkg/loxinet/rules.go index ae662398..13daf79e 100644 --- a/pkg/loxinet/rules.go +++ b/pkg/loxinet/rules.go @@ -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())