Skip to content

Commit

Permalink
fix(batch-requests): ignore "unix:" in the configuration (#7106)
Browse files Browse the repository at this point in the history
Signed-off-by: spacewander <[email protected]>
  • Loading branch information
spacewander authored May 23, 2022
1 parent 485a395 commit eba1c30
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion apisix/cli/ops.lua
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ Please modify "admin_key" in conf/config.yaml .
if real_ip_from then
for _, ip in ipairs(real_ip_from) do
local _ip = cli_ip:new(ip)
if _ip:is_loopback() or _ip:is_unspecified() then
if _ip and _ip:is_loopback() or _ip:is_unspecified() then
pass_real_client_ip = true
end
end
Expand Down
1 change: 1 addition & 0 deletions t/cli/test_validate_config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ nginx_config:
- "0.0.0.0/0"
- "::"
- "::/0"
- "unix:"
' > conf/config.yaml

out=$(make init 2>&1 || true)
Expand Down

0 comments on commit eba1c30

Please sign in to comment.