Skip to content

Commit

Permalink
(netflow) fix missing check for egress_only
Browse files Browse the repository at this point in the history
  • Loading branch information
AdSchellevis committed Dec 30, 2016
1 parent 5b4acfa commit 5f3936a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/opnsense/service/templates/OPNsense/Netflow/netflow.conf
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ netflow_interfaces="{% for interface in OPNsense.Netflow.capture.interfaces.spli
physical_interface(interface)
}} {%
endfor%}"
netflow_egress_only="{% for interface in OPNsense.Netflow.capture.egress_only.split(',')
netflow_egress_only="{% if OPNsense.Netflow.capture.egress_only %}{% for interface in OPNsense.Netflow.capture.egress_only.split(',')
%}{{
physical_interface(interface)
}} {%
endfor%}"
}}{%
endfor%} {%endif%}"
netflow_version="{%if OPNsense.Netflow.capture.version == 'v9' %}9{% else %}5{%endif%}"
netflow_int_destination="127.0.0.1:2055"
netflow_destinations="{{OPNsense.Netflow.capture.targets.replace(',', ' ')}}"
Expand Down

0 comments on commit 5f3936a

Please sign in to comment.