mirror of
https://gitee.com/san-bing/JChargePointProtocol
synced 2026-05-15 15:28:25 +08:00
使用域名方式
This commit is contained in:
@@ -62,7 +62,7 @@ public class DefaultServiceInfoProvider implements ServiceInfoProvider {
|
|||||||
}
|
}
|
||||||
log.info("Current Service ID: {}", serviceId);
|
log.info("Current Service ID: {}", serviceId);
|
||||||
|
|
||||||
hostAddress = InetAddress.getLocalHost().getHostAddress();
|
hostAddress = InetAddress.getLocalHost().getHostName();
|
||||||
|
|
||||||
log.info("Current Service HostAddress: {}, RestPort:{}, GrpcPort:{}", hostAddress, restPort, grpcPort);
|
log.info("Current Service HostAddress: {}, RestPort:{}, GrpcPort:{}", hostAddress, restPort, grpcPort);
|
||||||
if (serviceType.equalsIgnoreCase("monolith")) {
|
if (serviceType.equalsIgnoreCase("monolith")) {
|
||||||
|
|||||||
Reference in New Issue
Block a user