Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(batch-requests): ignore "unix:" in the configuration #7106

Merged
merged 1 commit into from
May 23, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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