Fixing wildcard in hostname for the upstream map

This commit is contained in:
Jonas Kint 2017-04-13 17:27:20 +02:00
parent 86128f87b4
commit a7b09e71a1

View file

@ -479,6 +479,7 @@ stream {
{{ if gt (len $passthroughBackends) 0 }}
# map FQDN that requires SSL passthrough
map $ssl_preread_server_name $stream_upstream {
hostnames;
{{ range $i, $passthrough := .PassthroughBackends }}
{{ $passthrough.Hostname }} {{ $passthrough.Backend }};
{{ end }}