From f23e1b38528ccb02290a84c632b65b499bee0d26 Mon Sep 17 00:00:00 2001 From: Trekkie Coder Date: Mon, 16 Oct 2023 23:34:09 +0900 Subject: [PATCH] incluster fixes for fullnat --- loxinet/rules.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/loxinet/rules.go b/loxinet/rules.go index c89d05b7..0d6d01dd 100644 --- a/loxinet/rules.go +++ b/loxinet/rules.go @@ -945,6 +945,8 @@ func (R *RuleH) electEPSrc(r *ruleEnt) bool { sip = r.tuples.l3Dst.addr.IP.Mask(r.tuples.l3Dst.addr.Mask) if np.xIP.Equal(sip) { sip = net.IPv4(0, 0, 0, 0) + } else if IsIPHostAddr(np.xIP.String()) { + sip = net.IPv4(0, 0, 0, 0) } } else { vip, err := mh.has.CIVipGet(r.ci)