|
|
|
@ -73,7 +73,9 @@ public class CloudHostService {
|
|
|
|
|
apiToken = refreshApiToken();
|
|
|
|
|
}
|
|
|
|
|
// 创建云主机
|
|
|
|
|
CreateCloudHostDto createCloudHostDto = JCloudUtil.oneStepCreateCloudHost(apiToken, imageId, nextNetworkId());
|
|
|
|
|
String networkId = nextNetworkId();
|
|
|
|
|
log.info("创建云主机:port:{}, networkId:{}", port, networkId);
|
|
|
|
|
CreateCloudHostDto createCloudHostDto = JCloudUtil.oneStepCreateCloudHost(apiToken, imageId, networkId);
|
|
|
|
|
// 内网穿透
|
|
|
|
|
intranetThrough(port, createCloudHostDto.getUsername(), createCloudHostDto.getPassword(), createCloudHostDto.getFloatingIp());
|
|
|
|
|
|
|
|
|
|