Merge pull request #774 from aledbf/fix-tcp-upd-listen

Add IPv6 support in TCP and UDP stream section
This commit is contained in:
Manuel Alejandro de Brito Fontes 2017-05-28 13:11:05 -04:00 committed by GitHub
commit efd6714d42

View file

@ -542,6 +542,7 @@ stream {
server {
listen {{ $tcpServer.Port }};
{{ if $IsIPV6Enabled }}listen [::]:{{ $tcpServer.Port }}{{ end }}
proxy_pass tcp-{{ $tcpServer.Backend.Namespace }}-{{ $tcpServer.Backend.Name }}-{{ $tcpServer.Backend.Port }};
}
{{ end }}
@ -556,6 +557,7 @@ stream {
server {
listen {{ $udpServer.Port }} udp;
{{ if $IsIPV6Enabled }}listen [::]:{{ $udpServer.Port }}{{ end }}
proxy_responses 1;
proxy_pass udp-{{ $udpServer.Backend.Namespace }}-{{ $udpServer.Backend.Name }}-{{ $udpServer.Backend.Port }};
}