Skip to content

Commit

Permalink
reduced logging
Browse files Browse the repository at this point in the history
  • Loading branch information
fredposner committed Dec 13, 2024
1 parent 8154f87 commit 37565a3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
Binary file modified binary/blockhosts
Binary file not shown.
Binary file added binary/blockhosts-pi
Binary file not shown.
9 changes: 7 additions & 2 deletions blockhosts.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,9 +194,14 @@ func main() {

updatedLlist = append(updatedLlist, parseList)
if count > 2 {
log.Println("blocking", address, "with count of", count)
if extraLog {
log.Println("blocking", address, "with count of", count)
}

if bhipt.Contains(blocked, address) {
log.Println(address, "already blocked")
if extraLog {
log.Println(address, "already blocked")
}
} else {
if bhc.Allowed == nil {
bhipt.IptableHandle("ipv4", "add", address, extraLog, chainName, targetChain)
Expand Down

0 comments on commit 37565a3

Please sign in to comment.