Skip to content

Commit

Permalink
lib-status:
Browse files Browse the repository at this point in the history
- in verbose mode, unconditionally report ip lists for all families set in config
  • Loading branch information
friendly-bits committed Jul 25, 2024
1 parent c24337f commit 5d1baad
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions lib/geoip-shell-lib-status.sh
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,15 @@ report_fw_state
for ccode in $active_ccodes; do
el_summary=''
printf %s "${purple}${ccode}${n_c}: "
for family in $active_families; do
el_cnt="$(cnt_ipset_elements "${ccode}_${family}")"
[ "$el_cnt" != 0 ] && list_empty='' || { list_empty=" $_X"; incr_issues; }
for family in $families; do
list_id="${ccode}_${family}"
el_cnt="$(cnt_ipset_elements "$list_id")"
[ "$el_cnt" != 0 ] && list_empty='' || {
case "$exclude_iplists" in
*"$list_id"*) list_empty=" (excluded)" ;;
*) list_empty=" $_X"; incr_issues
esac
}
el_summary="$el_summary$family - $blue$el_cnt$n_c$list_empty, "
total_el_cnt=$((total_el_cnt+el_cnt))
done
Expand Down

0 comments on commit 5d1baad

Please sign in to comment.