Skip to content

Commit

Permalink
use TrafficManager interface in main
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasferrandiz committed Feb 7, 2024
1 parent e8b80a5 commit 1b6bb82
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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

Check failure on line 340 in main.go

View workflow job for this annotation

GitHub Actions / lint

S1021: should merge variable declaration with assignment on next line (gosimple)

//For now, always use iptables
iptm = iptables.IPTablesManager{}
// Set up ipMasq if needed
if opts.ipMasq {
if config.EnableIPv4 {
Expand Down

0 comments on commit 1b6bb82

Please sign in to comment.