Skip to content

Commit b6bdc8e

Browse files
committed
Fix the error while setting current upstream peer
1 parent 8d9210f commit b6bdc8e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rootfs/etc/nginx/lua/tcp_udp_balancer.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,8 @@ local function sync_backend(backend)
8686
local implementation = get_implementation(backend)
8787
local balancer = balancers[backend.name]
8888

89+
backend.endpoints = format_ipv6_endpoints(backend.endpoints)
90+
8991
if not balancer then
9092
balancers[backend.name] = implementation:new(backend)
9193
return
@@ -105,8 +107,6 @@ local function sync_backend(backend)
105107
backend = resolve_external_names(backend)
106108
end
107109

108-
backend.endpoints = format_ipv6_endpoints(backend.endpoints)
109-
110110
balancer:sync(backend)
111111
end
112112

0 commit comments

Comments
 (0)