From 1c73fc03a5904ae2d89e452a51560a6c6d50f423 Mon Sep 17 00:00:00 2001 From: Trekkie Coder Date: Thu, 26 Dec 2024 20:28:28 +0900 Subject: [PATCH] gh-877 Initial support for egress : patchset3 --- pkg/loxinet/cluster.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkg/loxinet/cluster.go b/pkg/loxinet/cluster.go index 40b72c7b6..a0d3bfcb4 100644 --- a/pkg/loxinet/cluster.go +++ b/pkg/loxinet/cluster.go @@ -357,6 +357,11 @@ func (ci *CIStateH) CIDestroy() { // CIAddClusterRoute - routine to add a cluster route func (h *CIStateH) CIAddClusterRoute(dest string, add bool) { + if tk.IsNetIPv4(dest) && dest != mh.has.ClusterGw || + tk.IsNetIPv6(dest) && dest != mh.has.ClusterGw6 { + return + } + if add { found := false if tk.IsNetIPv4(dest) {