Skip to content

Commit

Permalink
fix empty nameset
Browse files Browse the repository at this point in the history
  • Loading branch information
hnimminh committed Aug 26, 2021
1 parent aecab33 commit 9f40569
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions liberator/nft/nftables.j2.conf
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ table inet LIBREFW {

set WhiteHole {
type ipv4_addr
elements = { {{whiteset|join(',')}} }
{% if whiteset %} elements = { {{whiteset|join(',')}} } {% endif %}
}

set BlackHole {
type ipv4_addr
elements = { {{blackset|join(',')}} }
{% if blackset %} elements = { {{blackset|join(',')}} } {% endif %}
}

set TemporaryBlocks {
Expand Down

0 comments on commit 9f40569

Please sign in to comment.