tzssangglass commented on issue #5233: URL: https://github.com/apache/apisix/issues/5233#issuecomment-1002866719
> I parse the file '/etc/hosts' with RegExp in the initial phase Did you write the host and ip mappings in `/etc/hosts` beforehand? > So I can get 'hosts to ip' mapping . then I modify eureka code > that get ip (the code is line 132 in /apisix/discovery/eureka/init.lua ), use mapping relations to get ip in high priority , if not, I use the eureka service ip oneself . 1. determine whether the host is a domain or an ip 2. if it's a domain, resolve the domain to an ip, overriding the host ref: https://github.com/apache/apisix/blob/719c5388143d73cc1424d0a03ec51584a60e243e/apisix/init.lua#L166-L188 -- 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]
