Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
suslovsergey committed Feb 9, 2022
1 parent 2403019 commit 6044a4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apisix-lua/plugins/gelf-udp-logger.lua
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ function _M.log(conf, ctx)
local res = true
local sock = udp()
sock:settimeout(conf.timeout * 1000)
local ok, err = sock:setpeername("graylog.team.webbankir.cloud", 21002)
local ok, err = sock:setpeername(conf.host, conf.port)
if not ok then
return false, "failed to connect to UDP server: host[" .. conf.host
.. "] port[" .. tostring(conf.port) .. "] err: " .. err
Expand Down

0 comments on commit 6044a4f

Please sign in to comment.