ing
This commit is contained in:
parent
831e7f5015
commit
2086dc4a0d
|
@ -98,9 +98,9 @@ SERVICE_LOOP:
|
||||||
s := omd.NewService(
|
s := omd.NewService(
|
||||||
p,
|
p,
|
||||||
metaCryptoType,
|
metaCryptoType,
|
||||||
serviceName,
|
omm.MetaServiceTypeEnumUNKNOWN.String(),
|
||||||
)
|
)
|
||||||
s.Name = name
|
s.Name = serviceName
|
||||||
s.DiscoveredDate = omu.NowPtr()
|
s.DiscoveredDate = omu.NowPtr()
|
||||||
|
|
||||||
discoverySession.AddService(
|
discoverySession.AddService(
|
||||||
|
@ -146,9 +146,9 @@ SERVICE_LOOP:
|
||||||
s := omd.NewService(
|
s := omd.NewService(
|
||||||
p,
|
p,
|
||||||
metaCryptoType,
|
metaCryptoType,
|
||||||
serviceName,
|
omm.MetaServiceTypeEnumUNKNOWN.String(),
|
||||||
)
|
)
|
||||||
s.Name = name
|
s.Name = serviceName
|
||||||
s.DiscoveredDate = omu.NowPtr()
|
s.DiscoveredDate = omu.NowPtr()
|
||||||
|
|
||||||
discoverySession.AddService(
|
discoverySession.AddService(
|
||||||
|
|
|
@ -24,7 +24,7 @@ func scanV4(discoverySession session.DiscoverySession, targetHost *omd.Host) err
|
||||||
|
|
||||||
tcpChan := ps.OpenTCP(targetHost.Address)
|
tcpChan := ps.OpenTCP(targetHost.Address)
|
||||||
defer func() {
|
defer func() {
|
||||||
go ps.CloseTCP(targetHost.Address, tcpChan)
|
ps.CloseTCP(targetHost.Address, tcpChan)
|
||||||
}()
|
}()
|
||||||
|
|
||||||
timerStopped := make(chan struct{})
|
timerStopped := make(chan struct{})
|
||||||
|
|
Loading…
Reference in New Issue
Block a user