Skip to content

Commit

Permalink
refine the bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
kingluo committed Mar 24, 2023
1 parent 8197e03 commit 0ed623a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apisix/upstream.lua
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ local function create_checker(upstream)
local host = upstream.checks and upstream.checks.active and upstream.checks.active.host
local port = upstream.checks and upstream.checks.active and upstream.checks.active.port
local up_hdr = upstream.pass_host == "rewrite" and upstream.upstream_host
local use_node_hdr = upstream.pass_host == "node"
local use_node_hdr = upstream.pass_host == "node" or nil
for _, node in ipairs(upstream.nodes) do
local host_hdr = up_hdr or (use_node_hdr and node.domain)
local ok, err = checker:add_target(node.host, port or node.port, host,
Expand Down

0 comments on commit 0ed623a

Please sign in to comment.