diff --git a/controllers/nginx/rootfs/etc/nginx/template/nginx.tmpl b/controllers/nginx/rootfs/etc/nginx/template/nginx.tmpl index 74def1cc2f..dcf6d8d9b7 100644 --- a/controllers/nginx/rootfs/etc/nginx/template/nginx.tmpl +++ b/controllers/nginx/rootfs/etc/nginx/template/nginx.tmpl @@ -549,7 +549,7 @@ stream { server { listen {{ $tcpServer.Port }}; - {{ if $IsIPV6Enabled }}listen [::]:{{ $tcpServer.Port }}{{ end }} + {{ if $IsIPV6Enabled }}listen [::]:{{ $tcpServer.Port }};{{ end }} proxy_pass tcp-{{ $tcpServer.Backend.Namespace }}-{{ $tcpServer.Backend.Name }}-{{ $tcpServer.Backend.Port }}; } {{ end }}