Skip to content

Commit

Permalink
check self.client_ips
Browse files Browse the repository at this point in the history
  • Loading branch information
chronolaw committed Nov 5, 2024
1 parent a2937d4 commit 1f9d54f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion kong/clustering/rpc/manager.lua
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,9 @@ function _M:handle_websocket()
self:_add_socket(s, rpc_capabilities)

-- store DP's ip addr
self.client_ips[node_id] = ngx_var.remote_addr
if self.client_ips then
self.client_ips[node_id] = ngx_var.remote_addr
end

s:start()
local res, err = s:join()
Expand Down

0 comments on commit 1f9d54f

Please sign in to comment.