Skip to content

Commit

Permalink
Only set stream status zone if hostname exists (#2684)
Browse files Browse the repository at this point in the history
Problem: Noticed during conformance tests, the stream server blocks did not have a hostname, and therefore the status_zone value was empty and invalid.

Solution: Only set the status_zone directive if it has a value.
sjberman authored Oct 11, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 7644959 commit 3748661
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -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 }}

0 comments on commit 3748661

Please sign in to comment.