使用域名方式

This commit is contained in:
三丙
2024-10-24 17:06:09 +08:00
parent 76f9d5d3dc
commit 210ed399da

View File

@@ -62,7 +62,7 @@ public class DefaultServiceInfoProvider implements ServiceInfoProvider {
}
log.info("Current Service ID: {}", serviceId);
hostAddress = InetAddress.getLocalHost().getHostAddress();
hostAddress = InetAddress.getLocalHost().getHostName();
log.info("Current Service HostAddress: {}, RestPort:{}, GrpcPort:{}", hostAddress, restPort, grpcPort);
if (serviceType.equalsIgnoreCase("monolith")) {