ing
This commit is contained in:
parent
831e7f5015
commit
2086dc4a0d
|
@ -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(
|
||||
|
|
|
@ -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{})
|
||||
|
|
Loading…
Reference in New Issue
Block a user