@ -66,7 +66,7 @@ public class EurekaInstanceConfigBean implements EurekaInstanceConfig {
@@ -66,7 +66,7 @@ public class EurekaInstanceConfigBean implements EurekaInstanceConfig {
privateintleaseExpirationDurationInSeconds=90;
@Value("${spring.application.name:unknown}")//TODO: why is .mydomain.net here?
@Value("${spring.application.name:unknown}")
privateStringvirtualHostName;
privateStringsecureVirtualHostName;
@ -99,6 +99,12 @@ public class EurekaInstanceConfigBean implements EurekaInstanceConfig {
@@ -99,6 +99,12 @@ public class EurekaInstanceConfigBean implements EurekaInstanceConfig {
privateStringnamespace="eureka";
privateStringhostname=hostInfo[1];
privatebooleanpreferIpAddress=false;
publicStringgetHostname(){
returnpreferIpAddress?ipAddress:hostname;
}
@Override
publicbooleangetSecurePortEnabled(){
@ -118,7 +124,7 @@ public class EurekaInstanceConfigBean implements EurekaInstanceConfig {
@@ -118,7 +124,7 @@ public class EurekaInstanceConfigBean implements EurekaInstanceConfig {