mirror of
https://gitee.com/san-bing/JChargePointProtocol
synced 2026-05-05 10:29:56 +08:00
@@ -59,7 +59,7 @@ public class DefaultServiceInfoProvider implements ServiceInfoProvider {
|
||||
try {
|
||||
this.serviceId = InetAddress.getLocalHost().getHostName();
|
||||
} catch (UnknownHostException e) {
|
||||
this.serviceId = RandomStringUtils.randomAlphabetic(10);
|
||||
this.serviceId = RandomStringUtils.secure().nextAlphabetic(10);
|
||||
}
|
||||
}
|
||||
log.info("Current Service ID: {}", serviceId);
|
||||
|
||||
Reference in New Issue
Block a user