@@ -1048,16 +1048,18 @@ var parseFixtures = []parseFixture{
1048
1048
Line : 4 ,
1049
1049
Block : Directives {
1050
1050
{
1051
- Directive : "default" ,
1052
- Args : []string {"0" },
1053
- Line : 5 ,
1054
- Block : Directives {},
1051
+ Directive : "default" ,
1052
+ Args : []string {"0" },
1053
+ Line : 5 ,
1054
+ Block : Directives {},
1055
+ IsMapBlockParameter : true ,
1055
1056
},
1056
1057
{
1057
- Directive : "~Opera Mini" ,
1058
- Args : []string {"1" },
1059
- Line : 6 ,
1060
- Block : Directives {},
1058
+ Directive : "~Opera Mini" ,
1059
+ Args : []string {"1" },
1060
+ Line : 6 ,
1061
+ Block : Directives {},
1062
+ IsMapBlockParameter : true ,
1061
1063
},
1062
1064
},
1063
1065
},
@@ -1067,16 +1069,18 @@ var parseFixtures = []parseFixture{
1067
1069
Line : 9 ,
1068
1070
Block : Directives {
1069
1071
{
1070
- Directive : "C0" ,
1071
- Args : []string {"D18E" },
1072
- Line : 10 ,
1073
- Block : Directives {},
1072
+ Directive : "C0" ,
1073
+ Args : []string {"D18E" },
1074
+ Line : 10 ,
1075
+ Block : Directives {},
1076
+ IsMapBlockParameter : true ,
1074
1077
},
1075
1078
{
1076
- Directive : "C1" ,
1077
- Args : []string {"D0B0" },
1078
- Line : 11 ,
1079
- Block : Directives {},
1079
+ Directive : "C1" ,
1080
+ Args : []string {"D0B0" },
1081
+ Line : 11 ,
1082
+ Block : Directives {},
1083
+ IsMapBlockParameter : true ,
1080
1084
},
1081
1085
},
1082
1086
},
@@ -1183,16 +1187,18 @@ var parseFixtures = []parseFixture{
1183
1187
Line : 4 ,
1184
1188
Block : Directives {
1185
1189
{
1186
- Directive : "default" ,
1187
- Args : []string {"0" },
1188
- Line : 5 ,
1189
- Block : Directives {},
1190
+ Directive : "default" ,
1191
+ Args : []string {"0" },
1192
+ Line : 5 ,
1193
+ Block : Directives {},
1194
+ IsMapBlockParameter : true ,
1190
1195
},
1191
1196
{
1192
- Directive : "~Opera Mini" ,
1193
- Args : []string {"1" },
1194
- Line : 6 ,
1195
- Block : Directives {},
1197
+ Directive : "~Opera Mini" ,
1198
+ Args : []string {"1" },
1199
+ Line : 6 ,
1200
+ Block : Directives {},
1201
+ IsMapBlockParameter : true ,
1196
1202
},
1197
1203
},
1198
1204
},
@@ -1238,28 +1244,32 @@ var parseFixtures = []parseFixture{
1238
1244
Line : 6 ,
1239
1245
Block : Directives {
1240
1246
{
1241
- Directive : "ranges" ,
1242
- Args : []string {},
1243
- Line : 7 ,
1244
- Block : Directives {},
1247
+ Directive : "ranges" ,
1248
+ Args : []string {},
1249
+ Line : 7 ,
1250
+ Block : Directives {},
1251
+ IsMapBlockParameter : true ,
1245
1252
},
1246
1253
{
1247
- Directive : "default" ,
1248
- Args : []string {"0" },
1249
- Line : 8 ,
1250
- Block : Directives {},
1254
+ Directive : "default" ,
1255
+ Args : []string {"0" },
1256
+ Line : 8 ,
1257
+ Block : Directives {},
1258
+ IsMapBlockParameter : true ,
1251
1259
},
1252
1260
{
1253
- Directive : "192.168.1.0/24" ,
1254
- Args : []string {"1" },
1255
- Line : 9 ,
1256
- Block : Directives {},
1261
+ Directive : "192.168.1.0/24" ,
1262
+ Args : []string {"1" },
1263
+ Line : 9 ,
1264
+ Block : Directives {},
1265
+ IsMapBlockParameter : true ,
1257
1266
},
1258
1267
{
1259
- Directive : "127.0.0.1" ,
1260
- Args : []string {"2" },
1261
- Line : 10 ,
1262
- Block : Directives {},
1268
+ Directive : "127.0.0.1" ,
1269
+ Args : []string {"2" },
1270
+ Line : 10 ,
1271
+ Block : Directives {},
1272
+ IsMapBlockParameter : true ,
1263
1273
},
1264
1274
},
1265
1275
},
@@ -1325,16 +1335,18 @@ var parseFixtures = []parseFixture{
1325
1335
Line : 2 ,
1326
1336
Block : Directives {
1327
1337
{
1328
- Directive : "text/html" ,
1329
- Args : []string {"html" , "htm" , "shtml" },
1330
- Line : 3 ,
1331
- Block : Directives {},
1338
+ Directive : "text/html" ,
1339
+ Args : []string {"html" , "htm" , "shtml" },
1340
+ Line : 3 ,
1341
+ Block : Directives {},
1342
+ IsMapBlockParameter : true ,
1332
1343
},
1333
1344
{
1334
- Directive : "text/css" ,
1335
- Args : []string {"css" },
1336
- Line : 4 ,
1337
- Block : Directives {},
1345
+ Directive : "text/css" ,
1346
+ Args : []string {"css" },
1347
+ Line : 4 ,
1348
+ Block : Directives {},
1349
+ IsMapBlockParameter : true ,
1338
1350
},
1339
1351
},
1340
1352
},
@@ -2131,16 +2143,18 @@ var parseFixtures = []parseFixture{
2131
2143
Args : []string {"/etc/Geo/GeoLite2-City.mmdb" },
2132
2144
Block : Directives {
2133
2145
{
2134
- Directive : "auto_reload" ,
2135
- Args : []string {"5s" },
2136
- Line : 3 ,
2137
- Block : Directives {},
2146
+ Directive : "auto_reload" ,
2147
+ Args : []string {"5s" },
2148
+ Line : 3 ,
2149
+ Block : Directives {},
2150
+ IsMapBlockParameter : true ,
2138
2151
},
2139
2152
{
2140
- Directive : "$geoip2_city_name" ,
2141
- Args : []string {"city" , "names" , "en" },
2142
- Line : 4 ,
2143
- Block : Directives {},
2153
+ Directive : "$geoip2_city_name" ,
2154
+ Args : []string {"city" , "names" , "en" },
2155
+ Line : 4 ,
2156
+ Block : Directives {},
2157
+ IsMapBlockParameter : true ,
2144
2158
},
2145
2159
},
2146
2160
},
@@ -2203,10 +2217,11 @@ var parseFixtures = []parseFixture{
2203
2217
Args : []string {"/etc/Geo/GeoLite2-Country.mmdb" },
2204
2218
Block : Directives {
2205
2219
{
2206
- Directive : "$geoip2_country_name" ,
2207
- Args : []string {"country" , "names" , "en" },
2208
- Line : 20 ,
2209
- Block : Directives {},
2220
+ Directive : "$geoip2_country_name" ,
2221
+ Args : []string {"country" , "names" , "en" },
2222
+ Line : 20 ,
2223
+ Block : Directives {},
2224
+ IsMapBlockParameter : true ,
2210
2225
},
2211
2226
},
2212
2227
},
@@ -2216,16 +2231,18 @@ var parseFixtures = []parseFixture{
2216
2231
Args : []string {"$geoip2_country_name" , "$backend" },
2217
2232
Block : Directives {
2218
2233
{
2219
- Directive : "United States" ,
2220
- Args : []string {"us_backend" },
2221
- Line : 24 ,
2222
- Block : Directives {},
2234
+ Directive : "United States" ,
2235
+ Args : []string {"us_backend" },
2236
+ Line : 24 ,
2237
+ Block : Directives {},
2238
+ IsMapBlockParameter : true ,
2223
2239
},
2224
2240
{
2225
- Directive : "default" ,
2226
- Args : []string {"default_backend" },
2227
- Line : 25 ,
2228
- Block : Directives {},
2241
+ Directive : "default" ,
2242
+ Args : []string {"default_backend" },
2243
+ Line : 25 ,
2244
+ Block : Directives {},
2245
+ IsMapBlockParameter : true ,
2229
2246
},
2230
2247
},
2231
2248
},
0 commit comments