You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when i send a curl request to receive the service hosts, i get only hostnames. curl -X GET http://127.0.0.1:8078/eureka/hosts?appName=s2
when i set the configuration
eureka.instance.preferIpAddress=true
I still get hostnames instead of IP addresses.
In order to get the hostname, i had to change the file HostsHandler.java as follows: hosts.add(instanceInfo.getIPAddr());
There should be an option to make it configurable
The text was updated successfully, but these errors were encountered:
when i send a curl request to receive the service hosts, i get only hostnames.
curl -X GET http://127.0.0.1:8078/eureka/hosts?appName=s2
when i set the configuration
I still get hostnames instead of IP addresses.
In order to get the hostname, i had to change the file
HostsHandler.java
as follows:hosts.add(instanceInfo.getIPAddr());
There should be an option to make it configurable
The text was updated successfully, but these errors were encountered: