snort3: add missing action-override option
[feed/packages.git] / net / snort3 / files / snort.uc
index dc36e898d2c9955929b0754fc111a9e0e35575a9..62dae71ca0c4190a60756502a3b196beb84ee218 100644 (file)
@@ -52,7 +52,9 @@ snort  = {
 ips = {
   mode            = '{{ line_mode }}',
   variables       = default_variables,
+{% if (snort.action != 'default'): %}
   action_override = '{{ snort.action }}',
+{% endif %}
 {% if (getenv("_SNORT_WITHOUT_RULES") == "1"): %}
   -- WARNING: THIS IS A TEST-ONLY CONFIGURATION WITHOUT ANY RULES.
 {% else %}