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