diff --git a/package/etc/go_templates/source_network.t b/package/etc/go_templates/source_network.t index 6d7a6d3..63ec329 100644 --- a/package/etc/go_templates/source_network.t +++ b/package/etc/go_templates/source_network.t @@ -24,7 +24,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 (math.Seq (getenv "SC4S_SOURCE_LISTEN_UDP_SOCKETS" "5"))}} +{{- range (math.Seq (getenv "SC4S_SOURCE_LISTEN_UDP_SOCKETS" "1"))}} {{- $context := dict "instance" . "port_id" $port_id }} {{- template "UDP" $context }} {{- end}}