ing
This commit is contained in:
@@ -1,11 +1,9 @@
|
||||
package syn
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"log"
|
||||
"net"
|
||||
"strconv"
|
||||
"sync/atomic"
|
||||
"time"
|
||||
|
||||
@@ -129,12 +127,12 @@ func handlePacketTCP4(discoverySession session.DiscoverySession, host *omd.Host,
|
||||
}
|
||||
// olog.Logger().Debug("Discovery", zap.String("ip", host.Address), zap.Int("port", port))
|
||||
|
||||
p := &omd.Port{
|
||||
MetaPortType: omm.ToMetaPortType(omm.MetaPortTypeEnumTCP),
|
||||
PortNumber: json.Number(strconv.Itoa(port)),
|
||||
DiscoveredDate: omu.NowPtr(),
|
||||
}
|
||||
p.Host = host
|
||||
p := omd.NewPort(
|
||||
host,
|
||||
omm.ToMetaPortType(omm.MetaPortTypeEnumTCP),
|
||||
port,
|
||||
)
|
||||
p.DiscoveredDate = omu.NowPtr()
|
||||
|
||||
ports[port] = p
|
||||
|
||||
|
||||
Reference in New Issue
Block a user