diff --git a/src/main/java/com/loafle/overflow/central/module/target/service/CentralTargetService.java b/src/main/java/com/loafle/overflow/central/module/target/service/CentralTargetService.java index 4479349..71e5fc2 100644 --- a/src/main/java/com/loafle/overflow/central/module/target/service/CentralTargetService.java +++ b/src/main/java/com/loafle/overflow/central/module/target/service/CentralTargetService.java @@ -16,7 +16,6 @@ import com.loafle.overflow.model.discovery.Service; import com.loafle.overflow.model.infra.InfraHost; import com.loafle.overflow.model.infra.InfraService; import com.loafle.overflow.model.meta.MetaInfraType; -import com.loafle.overflow.model.meta.MetaInfraVendor; import com.loafle.overflow.model.probe.Probe; import com.loafle.overflow.model.target.Target; import com.loafle.overflow.service.central.target.TargetService; @@ -149,9 +148,9 @@ public class CentralTargetService implements TargetService { InfraHost infraHost = new InfraHost(); infraHost.setMetaInfraType(new MetaInfraType(2)); infraHost.setProbe(new Probe(probeId)); - infraHost.setIpv4(host.getIpv4()); - infraHost.setIpv6(host.getIpv6()); - infraHost.setMac(host.getMac()); + // infraHost.setIpv4(host.getIpv4()); + // infraHost.setIpv6(host.getIpv6()); + // infraHost.setMac(host.getMac()); return this.infraHostService.regist(infraHost); } @@ -159,11 +158,11 @@ public class CentralTargetService implements TargetService { throws OverflowException { InfraService infraService = new InfraService(); infraHost.setMetaInfraType(new MetaInfraType(7)); - infraService.setInfraHost(infraHost); - infraService.setPort(service.getPort().getPortNumber()); - infraService.setPortType(service.getPort().getPortType().toString()); - infraService.setTlsType(service.getCryptoType() == CryptoType.TLS); - infraService.setMetaInfraVendor(MetaInfraVendor.CreateInfraVendorByService(service.getServiceName())); + // infraService.setInfraHost(infraHost); + // infraService.setPort(service.getPort().getPortNumber()); + // infraService.setPortType(service.getPort().getPortType().toString()); + // infraService.setTlsType(service.getCryptoType() == CryptoType.TLS); + // infraService.setMetaInfraVendor(MetaInfraVendor.CreateInfraVendorByService(service.getServiceName())); return this.infraServiceService.regist(infraService); }