We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 827d852 + 884b388 commit a5eac35Copy full SHA for a5eac35
controllers/nginx/rootfs/etc/nginx/template/nginx.tmpl
@@ -573,7 +573,7 @@ stream {
573
574
{{ if isLocationAllowed $location }}
575
{{ if gt (len $location.Whitelist.CIDR) 0 }}
576
- if ({{ buildDenyVariable (print .Hostname "_" $path) }}) {
+ if ({{ buildDenyVariable (print $server.Hostname "_" $path) }}) {
577
return 403;
578
}
579
{{ end }}
controllers/nginx/test/data/config.json
@@ -96,7 +96,7 @@
96
"sslRedirect": true
97
},
98
"whitelist": {
99
- "cidr": []
+ "cidr": ["1.1.1.1"]
100
101
"proxy": {
102
"conectTimeout": 5,
@@ -146,7 +146,7 @@
146
"sslRedirect": false
147
148
149
- "cidr": null
150
151
152
0 commit comments