Skip to content

Commit ac2c07a

Browse files
committed
fix(runloop) make compatible with lua-resty-dns-client 5.x
1 parent 6a93d41 commit ac2c07a

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

kong-2.0.4-0.rockspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ dependencies = {
3131

3232
-- lua-resty-dns-client 5.0.1 dependencies
3333
"lrandom",
34-
"lua-resty-timer < 1.0",
34+
"lua-resty-timer == 1.0.0",
3535
"binaryheap >= 0.4",
3636

3737
"lua-resty-worker-events == 1.0.0",

kong/runloop/balancer.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -917,6 +917,8 @@ local function execute(target, ctx)
917917
(port == "No peers are available" or port == "Balancer is unhealthy") then
918918
return nil, "failure to get a peer from the ring-balancer", 503
919919
end
920+
921+
hostname = hostname or ip
920922
target.hash_value = hash_value
921923
target.balancer_handle = handle
922924

0 commit comments

Comments
 (0)