Skip to content

Commit f7f2536

Browse files
committed
fixed logging and dropping
1 parent f961a80 commit f7f2536

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/ns-dpi/files/dpi-nft

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,10 @@ chain dpi_blocks {
1717
1818
# init is to allow kernel to set labels
1919
ct label set netify-init
20-
ct label netify-block counter {% if log_enabled %}log prefix "DPI block: " limit rate {{ log_limit }} {% endif %}drop
20+
{% if log_enabled -%}
21+
ct label netify-block counter log prefix "DPI block: " limit rate {{ log_limit }}
22+
{% endif -%}
23+
ct label netify-block counter drop
2124
}
2225
2326
"""

0 commit comments

Comments
 (0)