Skip to content

Commit

Permalink
change helpers.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
chronolaw committed Jan 13, 2024
1 parent 9fdec18 commit 42c02b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/helpers.lua
Original file line number Diff line number Diff line change
Expand Up @@ -885,7 +885,7 @@ end
local function get_proxy_port(ssl, http2)
if ssl == nil then ssl = false end
for _, entry in ipairs(conf.proxy_listeners) do
if entry.ssl == ssl and (http2 == nil or entry.http2 == http2) then
if entry.ssl == ssl then
return entry.port
end
end
Expand All @@ -900,7 +900,7 @@ end
local function get_proxy_ip(ssl, http2)
if ssl == nil then ssl = false end
for _, entry in ipairs(conf.proxy_listeners) do
if entry.ssl == ssl and (http2 == nil or entry.http2 == http2) then
if entry.ssl == ssl then
return entry.ip
end
end
Expand Down

0 comments on commit 42c02b0

Please sign in to comment.