File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
internal/mode/static/state/dataplane Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1004,9 +1004,9 @@ func buildNginxPlus(g *graph.Graph) NginxPlus {
1004
1004
ngfProxy := g .NginxProxy
1005
1005
if ngfProxy != nil && ngfProxy .Source .Spec .NginxPlus != nil {
1006
1006
if ngfProxy .Source .Spec .NginxPlus .AllowedAddresses != nil {
1007
- addresses := make ([]string , len (ngfProxy .Source .Spec .NginxPlus .AllowedAddresses ))
1008
- for i , addr := range ngfProxy .Source .Spec .NginxPlus .AllowedAddresses {
1009
- addresses [ i ] = addr .Value
1007
+ addresses := make ([]string , 0 , len (ngfProxy .Source .Spec .NginxPlus .AllowedAddresses ))
1008
+ for _ , addr := range ngfProxy .Source .Spec .NginxPlus .AllowedAddresses {
1009
+ addresses = append ( addresses , addr .Value )
1010
1010
}
1011
1011
1012
1012
nginxPlusSettings .AllowedAddresses = addresses
You can’t perform that action at this time.
0 commit comments