From 310bfbc1edaa503c3522dc1f328d57f99f7fa69f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A5vard=20Moen?= Date: Wed, 7 Apr 2021 14:56:39 +0200 Subject: [PATCH] fix indendation issue --- iptables.go | 2 +- nftables.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/iptables.go b/iptables.go index 74479a64..b3209e7e 100644 --- a/iptables.go +++ b/iptables.go @@ -37,7 +37,7 @@ func newIPTables(config *bouncerConfig) (interface{}, error) { } var target string - if strings.EqualFold(config.DenyAction, "REJECT") { + if strings.EqualFold(config.DenyAction, "REJECT") { target = "REJECT" } else { target = "DROP" diff --git a/nftables.go b/nftables.go index d5d0b455..e8f952fc 100644 --- a/nftables.go +++ b/nftables.go @@ -157,7 +157,7 @@ func (n *nft) Init() error { Data: []byte(n.DenyLogPrefix), }) } - if strings.EqualFold(n.DenyAction, "REJECT") { + if strings.EqualFold(n.DenyAction, "REJECT") { r.Exprs = append(r.Exprs, &expr.Reject{ Type: unix.NFT_REJECT_ICMP_UNREACH, Code: unix.NFT_REJECT_ICMPX_ADMIN_PROHIBITED,