File tree 2 files changed +5
-3
lines changed
2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -279,8 +279,10 @@ Please modify "admin_key" in conf/config.yaml .
279
279
if real_ip_from then
280
280
for _ , ip in ipairs (real_ip_from ) do
281
281
local _ip = cli_ip :new (ip )
282
- if _ip and _ip :is_loopback () or _ip :is_unspecified () then
283
- pass_real_client_ip = true
282
+ if _ip then
283
+ if _ip :is_loopback () or _ip :is_unspecified () then
284
+ pass_real_client_ip = true
285
+ end
284
286
end
285
287
end
286
288
end
Original file line number Diff line number Diff line change @@ -195,7 +195,7 @@ nginx_config:
195
195
- "unix:"
196
196
' > conf/config.yaml
197
197
198
- out=$( make init 2>&1 || true )
198
+ out=$( make init 2>&1 )
199
199
if echo " $out " | grep " missing loopback or unspecified in the nginx_config.http.real_ip_from for plugin batch-requests" ; then
200
200
echo " failed: should check the realip configuration for batch-requests"
201
201
exit 1
You can’t perform that action at this time.
0 commit comments