Skip to content

Commit

Permalink
deps(dns) update dns dependency to 0.4.0 to fix #2290
Browse files Browse the repository at this point in the history
  • Loading branch information
Tieske committed Mar 30, 2017
1 parent 476d6ab commit 88c9201
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion kong-0.10.1-0.rockspec
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ dependencies = {
"luacrypto == 0.3.2",
"luasyslog == 1.0.0",
"lua_pack == 1.0.4",
"lua-resty-dns-client == 0.3.2",
"lua-resty-dns-client == 0.4.0",
"lua-resty-worker-events == 0.3.0",
}
build = {
Expand Down
2 changes: 1 addition & 1 deletion kong/core/balancer.lua
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ local function execute(target)
-- have to invoke the ring-balancer
local hashValue = nil -- TODO: implement, nil does simple round-robin

local ip, port, hostname = balancer:getPeer(hashValue, dns_cache_only)
local ip, port, hostname = balancer:getPeer(hashValue, nil, dns_cache_only)
if not ip then
if port == "No peers are available" then
-- in this case a "503 service unavailable", others will be a 500.
Expand Down

0 comments on commit 88c9201

Please sign in to comment.