gliffcheung commented on issue #10624:
URL: https://github.com/apache/apisix/issues/10624#issuecomment-2221865656

   If two domains have the same ip, apisix may even use the domain name of an 
unhealthy node.
   https://github.com/apache/apisix/blob/master/apisix/balancer.lua#L110
   ```lua
           for _, node in ipairs(nodes) do
               if node.domain then
                   local addr = node.host .. ":" .. node.port
                   addr_to_domain[addr] = node.domain
               end
           end
   ```
   
   https://github.com/apache/apisix/blob/master/apisix/balancer.lua#L261
   ```lua
       local domain = server_picker.addr_to_domain[server]
       
       res.domain = domain
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to