@ -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;
@ -100,6 +100,12 @@ public class EurekaInstanceConfigBean implements EurekaInstanceConfig {
@@ -100,6 +100,12 @@ public class EurekaInstanceConfigBean implements EurekaInstanceConfig {
privateStringhostname=hostInfo[1];
privatebooleanpreferIpAddress=false;
publicStringgetHostname(){
returnpreferIpAddress?ipAddress:hostname;
}
@Override
publicbooleangetSecurePortEnabled(){
returnsecurePortEnabled;
@ -118,7 +124,7 @@ public class EurekaInstanceConfigBean implements EurekaInstanceConfig {
@@ -118,7 +124,7 @@ public class EurekaInstanceConfigBean implements EurekaInstanceConfig {