Skip to content

Commit

Permalink
agent: fix reload
Browse files Browse the repository at this point in the history
Signed-off-by: He Xian <hexian000@outlook.com>
  • Loading branch information
hexian000 committed Sep 20, 2024
1 parent e11c824 commit 3b2a2cd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion agent.lua
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ local function is_valid(t, expiry_time, now)
end

local function build_index()
if not agent.peername then
return {}, {}
end
local peers, peer_rtt = {}, {}
peer_rtt[agent.peername] = 0
for connid, conn in pairs(_G.conninfo) do
Expand Down Expand Up @@ -68,7 +71,7 @@ local function build_index()
end
-- services[service] = peername
-- peers[peername] = connid
local services, peers = {}, {}
local services, peers = build_index()

local splithostport = neosocksd.splithostport
function match.agent()
Expand Down

0 comments on commit 3b2a2cd

Please sign in to comment.