Skip to content

Commit

Permalink
Update source_network.t
Browse files Browse the repository at this point in the history
Change UDP threads variable to `SC4S_SOURCE_LISTEN_UDP_SOCKETS` to match terminology in One Identity blog post and true nature of variable
  • Loading branch information
mbonsack authored and GitHub committed Apr 1, 2020
1 parent 3548019 commit ef47e25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package/etc/go_templates/source_network.t
Original file line number Diff line number Diff line change
Expand Up @@ -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}}
Expand Down Expand Up @@ -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 -}}
{{- end -}}

0 comments on commit ef47e25

Please sign in to comment.