dyrnq commented on issue #8856:
URL: https://github.com/apache/apisix/issues/8856#issuecomment-1437990998

   Indeed, there are some challenge for me. 
   
   I tried to see  the code 
<https://github.com/apache/apisix/blob/master/apisix/discovery/consul/init.lua#L329>
   
   there are consul_sub_url , consul_watch_sub_url, consul_server_url
   
   I think i can change
   
   ## step1
   
   ```bash
   consul_sub_url = "/catalog/service",  --> consul_sub_url = 
"/health/service", 
   ```
   
   ## step2
   
   append query string `?passing=true` to `svc_url`
   
   ```bash
   local svc_url = consul_server.consul_sub_url .. "/" .. service_name
   ```
   
   ## setp3
   
   adjust the data returned json by heath API
   
   `local svc_address, svc_port = node.ServiceAddress, node.ServicePort` 
   
   
   


-- 
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