Skip to content

Commit

Permalink
use env path in global.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
chronolaw committed Sep 20, 2022
1 parent 22bbf02 commit 656f827
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion kong/global.lua
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,8 @@ function _GLOBAL.init_worker_events()
else
-- `kong.configuration.prefix` is already normalized to an absoluate path,
-- but `ngx.config.prefix()` is not
local prefix = configuration and configuration.prefix or
local prefix = configuration and
configuration.resty_events_sock_path or configuration.prefix or
require("pl.path").abspath(ngx.config.prefix())

local sock = ngx.config.subsystem == "stream" and
Expand Down

0 comments on commit 656f827

Please sign in to comment.