This commit is contained in:
榴莲榴莲 2025-02-17 09:50:35 -08:00 committed by GitHub
commit b39f70903d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -86,6 +86,8 @@ local function sync_backend(backend)
local implementation = get_implementation(backend)
local balancer = balancers[backend.name]
backend.endpoints = format_ipv6_endpoints(backend.endpoints)
if not balancer then
balancers[backend.name] = implementation:new(backend)
return
@ -105,8 +107,6 @@ local function sync_backend(backend)
backend = resolve_external_names(backend)
end
backend.endpoints = format_ipv6_endpoints(backend.endpoints)
balancer:sync(backend)
end