mirror of
https://gitee.com/san-bing/JChargePointProtocol
synced 2026-05-04 01:49:58 +08:00
hostname解析问题
This commit is contained in:
@@ -62,7 +62,7 @@ public class DefaultServiceInfoProvider implements ServiceInfoProvider {
|
||||
}
|
||||
log.info("Current Service ID: {}", serviceId);
|
||||
|
||||
hostAddress = InetAddress.getLocalHost().getHostName();
|
||||
hostAddress = InetAddress.getLocalHost().getHostAddress();
|
||||
|
||||
log.info("Current Service HostAddress: {}, RestPort:{}, GrpcPort:{}", hostAddress, restPort, grpcPort);
|
||||
if (serviceType.equalsIgnoreCase("monolith")) {
|
||||
|
||||
Reference in New Issue
Block a user