This commit is contained in:
crusader 2018-09-12 15:06:15 +09:00
parent 831e7f5015
commit 2086dc4a0d
2 changed files with 5 additions and 5 deletions

View File

@ -98,9 +98,9 @@ SERVICE_LOOP:
s := omd.NewService(
p,
metaCryptoType,
serviceName,
omm.MetaServiceTypeEnumUNKNOWN.String(),
)
s.Name = name
s.Name = serviceName
s.DiscoveredDate = omu.NowPtr()
discoverySession.AddService(
@ -146,9 +146,9 @@ SERVICE_LOOP:
s := omd.NewService(
p,
metaCryptoType,
serviceName,
omm.MetaServiceTypeEnumUNKNOWN.String(),
)
s.Name = name
s.Name = serviceName
s.DiscoveredDate = omu.NowPtr()
discoverySession.AddService(

View File

@ -24,7 +24,7 @@ func scanV4(discoverySession session.DiscoverySession, targetHost *omd.Host) err
tcpChan := ps.OpenTCP(targetHost.Address)
defer func() {
go ps.CloseTCP(targetHost.Address, tcpChan)
ps.CloseTCP(targetHost.Address, tcpChan)
}()
timerStopped := make(chan struct{})