From 89029ed43b0f547a6c9d5012f344f602554cda6e Mon Sep 17 00:00:00 2001 From: Peter Hunt~ Date: Thu, 5 Jan 2023 13:41:33 -0500 Subject: [PATCH] hostport: use generic Set Signed-off-by: Peter Hunt~ --- internal/hostport/fake_iptables.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/internal/hostport/fake_iptables.go b/internal/hostport/fake_iptables.go index d6531c6c905..86f736fef82 100644 --- a/internal/hostport/fake_iptables.go +++ b/internal/hostport/fake_iptables.go @@ -39,17 +39,17 @@ type fakeTable struct { type fakeIPTables struct { tables map[string]*fakeTable - builtinChains map[string]sets.String + builtinChains map[string]sets.Set[string] protocol utiliptables.Protocol } func newFakeIPTables() *fakeIPTables { return &fakeIPTables{ tables: make(map[string]*fakeTable), - builtinChains: map[string]sets.String{ - string(utiliptables.TableFilter): sets.NewString("INPUT", "FORWARD", "OUTPUT"), - string(utiliptables.TableNAT): sets.NewString("PREROUTING", "INPUT", "OUTPUT", "POSTROUTING"), - string(utiliptables.TableMangle): sets.NewString("PREROUTING", "INPUT", "FORWARD", "OUTPUT", "POSTROUTING"), + builtinChains: map[string]sets.Set[string]{ + string(utiliptables.TableFilter): sets.New("INPUT", "FORWARD", "OUTPUT"), + string(utiliptables.TableNAT): sets.New("PREROUTING", "INPUT", "OUTPUT", "POSTROUTING"), + string(utiliptables.TableMangle): sets.New("PREROUTING", "INPUT", "FORWARD", "OUTPUT", "POSTROUTING"), }, protocol: utiliptables.ProtocolIPv4, }