diff --git a/internal/mode/static/nginx/config/stream_servers_template.go b/internal/mode/static/nginx/config/stream_servers_template.go index 58a95a70b0..75868bc0de 100644 --- a/internal/mode/static/nginx/config/stream_servers_template.go +++ b/internal/mode/static/nginx/config/stream_servers_template.go @@ -13,7 +13,7 @@ server { {{- range $address := $s.RewriteClientIP.RealIPFrom }} set_real_ip_from {{ $address }}; {{- end}} - {{- if $.Plus }} + {{- if and $.Plus $s.StatusZone }} status_zone {{ $s.StatusZone }}; {{- end }}