From a8749d4fec1a5865bbb71e75339ee1cdba44a730 Mon Sep 17 00:00:00 2001 From: lijie Date: Wed, 14 Jun 2023 10:26:15 +0800 Subject: [PATCH] fix tcp 502 error for parse tcp backend data --- rootfs/etc/nginx/lua/tcp_udp_configuration.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rootfs/etc/nginx/lua/tcp_udp_configuration.lua b/rootfs/etc/nginx/lua/tcp_udp_configuration.lua index caf6bffff..f191454fa 100644 --- a/rootfs/etc/nginx/lua/tcp_udp_configuration.lua +++ b/rootfs/etc/nginx/lua/tcp_udp_configuration.lua @@ -38,10 +38,10 @@ function _M.call() return end - local _, err = cjson.decode(backends) + local _, backends_err = cjson.decode(backends) - if err then - ngx.log(ngx.ERR, "could not parse backends data: ", err) + if backends_err then + ngx.log(ngx.ERR, "could not parse backends data: ", backends_err) return end