Skip to content

Commit

Permalink
Merge pull request #455 from splunk/fix/multiportvar
Browse files Browse the repository at this point in the history
Update source_network.t
  • Loading branch information
Ryan Faircloth authored and GitHub committed May 13, 2020
2 parents ab1d479 + f07ff23 commit 7d474d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package/etc/go_templates/source_network.t
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ source s_{{ .port_id }} {
source {
{{- if or (getenv (print "SC4S_LISTEN_" .port_id "_UDP_PORT")) (eq .port_id "DEFAULT") }}
{{- $port_id := .port_id }}
{{- range split (getenv (print "SC4S_LISTEN_" .port_id "_TCP_PORT") "514") "," }}
{{- range split (getenv (print "SC4S_LISTEN_" .port_id "_UDP_PORT") "514") "," }}
{{- $context := dict "port" . "port_id" $port_id }}
{{- template "UDP" $context }}
{{- end}}
Expand Down

0 comments on commit 7d474d2

Please sign in to comment.