Selaa lähdekoodia

libnetwork/iptables: resetIptables(): don't pass empty table name

Don't depend on a default being set, but explicitly pass the table.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Sebastiaan van Stijn 2 vuotta sitten
vanhempi
commit
ad0c928ab5
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      libnetwork/firewall_linux_test.go

+ 1 - 1
libnetwork/firewall_linux_test.go

@@ -111,6 +111,6 @@ func resetIptables(t *testing.T) {
 
 		_, err := iptable.Raw("-F", fwdChainName)
 		assert.Check(t, err)
-		_ = iptable.RemoveExistingChain(usrChainName, "")
+		_ = iptable.RemoveExistingChain(usrChainName, iptables.Filter)
 	}
 }