From 1b6bb8280a8d1ad9b06714f7eaa38c407084c3c4 Mon Sep 17 00:00:00 2001 From: Thomas Ferrandiz Date: Wed, 7 Feb 2024 16:28:04 +0000 Subject: [PATCH] use TrafficManager interface in main --- main.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index 59ddd309d5..97522a1830 100644 --- a/main.go +++ b/main.go @@ -336,7 +336,11 @@ func main() { os.Exit(1) } - iptm := iptables.IPTablesManager{} + //Create TrafficManager and instanciate it based on whether we use iptables or nftables + var iptm trafficmngr.TrafficManager + + //For now, always use iptables + iptm = iptables.IPTablesManager{} // Set up ipMasq if needed if opts.ipMasq { if config.EnableIPv4 {