From 3c6f9cac49d172e06c02851674d129f33c1b27e6 Mon Sep 17 00:00:00 2001 From: Ali Ariff Date: Fri, 12 Jun 2020 21:36:26 +0200 Subject: [PATCH] Use blank identifier Signed-off-by: Ali Ariff --- iptables/iptables.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/iptables/iptables.go b/iptables/iptables.go index c50cfaa1..9fc278b8 100644 --- a/iptables/iptables.go +++ b/iptables/iptables.go @@ -91,8 +91,8 @@ func formatComment(text string) string { func addOutgoingTrafficRules(commands []*exec.Cmd, firewallConfiguration FirewallConfiguration) []*exec.Cmd { outputChainName := "PROXY_INIT_OUTPUT" redirectChainName := "PROXY_INIT_REDIRECT" - executeCommand(firewallConfiguration, makeFlushChain(outputChainName)) - executeCommand(firewallConfiguration, makeDeleteChain(outputChainName)) + _ = executeCommand(firewallConfiguration, makeFlushChain(outputChainName)) + _ = executeCommand(firewallConfiguration, makeDeleteChain(outputChainName)) commands = append(commands, makeCreateNewChain(outputChainName, "redirect-common-chain")) @@ -121,8 +121,8 @@ func addOutgoingTrafficRules(commands []*exec.Cmd, firewallConfiguration Firewal func addIncomingTrafficRules(commands []*exec.Cmd, firewallConfiguration FirewallConfiguration) []*exec.Cmd { redirectChainName := "PROXY_INIT_REDIRECT" - executeCommand(firewallConfiguration, makeFlushChain(redirectChainName)) - executeCommand(firewallConfiguration, makeDeleteChain(redirectChainName)) + _ = executeCommand(firewallConfiguration, makeFlushChain(redirectChainName)) + _ = executeCommand(firewallConfiguration, makeDeleteChain(redirectChainName)) commands = append(commands, makeCreateNewChain(redirectChainName, "redirect-common-chain")) commands = addRulesForIgnoredPorts(firewallConfiguration.InboundPortsToIgnore, redirectChainName, commands)