Skip to content

Commit 93f0afc

Browse files
committed
capitalizes IP in EnableRealIPRecursive to match upstream changes
1 parent ae7fee9 commit 93f0afc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

internal/ingress/controller/config/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,7 @@ type Configuration struct {
559559
// Sets whether to use recursive search in the real ip module
560560
// https://nginx.org/en/docs/http/ngx_http_realip_module.html#real_ip_recursive
561561
// Default: true
562-
EnableRealIpRecursive bool `json:"enable-real-ip-recursive"`
562+
EnableRealIPRecursive bool `json:"enable-real-ip-recursive"`
563563

564564
// Sets the header field for identifying the originating IP address of a client
565565
// Default is X-Forwarded-For

rootfs/etc/nginx/template/nginx.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ http {
143143
real_ip_header {{ $cfg.ForwardedForHeader }};
144144
{{ end }}
145145

146-
{{ if $cfg.EnableRealIpRecursive }}
146+
{{ if $cfg.EnableRealIPRecursive }}
147147
real_ip_recursive on;
148148
{{ else }}
149149
real_ip_recursive off;

0 commit comments

Comments
 (0)