Skip to content

Commit

Permalink
fix indendation issue
Browse files Browse the repository at this point in the history
  • Loading branch information
umglurf committed Apr 7, 2021
1 parent dee982f commit 310bfbc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion iptables.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion nftables.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 310bfbc

Please sign in to comment.