Add support for IPv6 in TCP and UDP stream section
This commit is contained in:
parent
e4c4b22c73
commit
40cd78d0b8
1 changed files with 2 additions and 0 deletions
|
@ -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 }};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue