Skip to content

Commit

Permalink
Fixed validation against used UPnP ports (#129)
Browse files Browse the repository at this point in the history
  • Loading branch information
seud0nym committed Jan 11, 2023
1 parent ccb8bd3 commit 10e9e35
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -222,10 +222,10 @@ local function globalValid(data)
if #upnp_data ~= nil then
for i,v in ipairs(upnp_data) do
if v[1] == "TCP" or v[1] == "TCP+UDP" then
tcp[#tcp+1] = { start = tonumber(v[2]), ["end"] = tonumber(v[3]), index = i }
tcp[#tcp+1] = { start = tonumber(v[2]), ["end"] = tonumber(v[2]), index = i }
end
if v[1] == "UDP" or v[1] == "TCP+UDP" then
udp[#udp+1] = { start = tonumber(v[2]), ["end"] = tonumber(v[3]), index = i }
udp[#udp+1] = { start = tonumber(v[2]), ["end"] = tonumber(v[2]), index = i }
end
end
end
Expand Down

0 comments on commit 10e9e35

Please sign in to comment.