diff --git a/package/etc/go_templates/source_network.t b/package/etc/go_templates/source_network.t index b4e5353..a2ef26f 100644 --- a/package/etc/go_templates/source_network.t +++ b/package/etc/go_templates/source_network.t @@ -23,7 +23,7 @@ source s_{{ .port_id }} { channel { source { {{- if or (getenv (print "SC4S_LISTEN_" .port_id "_UDP_PORT")) (eq .port_id "DEFAULT") }} -{{- range (math.Seq (getenv "SC4S_SOURCE_LISTEN_UDP_INSTANCES" "5"))}} +{{- range (math.Seq (getenv "SC4S_SOURCE_LISTEN_UDP_SOCKETS" "5"))}} {{- $context := dict "instance" . "port_id" "DEFAULT" }} {{- template "UDP" $context }} {{- end}} @@ -206,4 +206,4 @@ source s_{{ .port_id }} { {{- end -}} {{- if or (or (or (getenv (print "SC4S_LISTEN_" .port_id "_TCP_PORT")) (getenv (print "SC4S_LISTEN_" .port_id "_UDP_PORT"))) (getenv (print "SC4S_LISTEN_" .port_id "_TLS_PORT"))) (eq .port_id "DEFAULT") -}} {{- template "T1" (.) -}} -{{- end -}} \ No newline at end of file +{{- end -}}