File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -2723,6 +2723,11 @@ func TestGenerateProxySetHeaders(t *testing.T) {
2723
2723
},
2724
2724
},
2725
2725
},
2726
+ {
2727
+ msg : "no filter set" ,
2728
+ expectedHeaders : httpBaseHeaders ,
2729
+ GRPC : false ,
2730
+ },
2726
2731
}
2727
2732
2728
2733
for _ , tc := range tests {
Original file line number Diff line number Diff line change @@ -863,8 +863,9 @@ func buildBaseHTTPConfig(g *graph.Graph) BaseHTTPConfig {
863
863
}
864
864
865
865
if len (g .NginxProxy .Source .Spec .RewriteClientIP .TrustedAddresses ) > 0 {
866
- trustedAddresses := convertTrustedAddresses (g .NginxProxy .Source .Spec .RewriteClientIP .TrustedAddresses )
867
- baseConfig .RewriteClientIPSettings .TrustedAddresses = trustedAddresses
866
+ baseConfig .RewriteClientIPSettings .TrustedAddresses = convertTrustedAddresses (
867
+ g .NginxProxy .Source .Spec .RewriteClientIP .TrustedAddresses ,
868
+ )
868
869
}
869
870
870
871
if g .NginxProxy .Source .Spec .RewriteClientIP .SetIPRecursively != nil {
You can’t perform that action at this time.
0 commit comments