ing
This commit is contained in:
parent
1739673413
commit
baa4517f36
|
@ -2,6 +2,7 @@ package service
|
|||
|
||||
import (
|
||||
"fmt"
|
||||
"log"
|
||||
"net"
|
||||
"time"
|
||||
|
||||
|
@ -26,7 +27,7 @@ func scanTCP(discoverySession session.DiscoverySession, targetPort *omd.Port) er
|
|||
}
|
||||
|
||||
if omm.MetaHostTypeEnumPrinter.String() == targetPort.Host.HostType {
|
||||
if 9100 == portNumber || 515 == portNumber {
|
||||
if 9100 == portNumber || 515 == portNumber || 7 == portNumber {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
@ -197,6 +198,10 @@ LOOP:
|
|||
for j := 0; j < packetCount; j++ {
|
||||
_packet := _matcher.Packet(matchCtx, j)
|
||||
|
||||
if "192.168.1.99" == targetPort.Host.Address {
|
||||
log.Print("192.168.1.99:", targetPort.PortNumber, " M: ", _matcher.Key())
|
||||
}
|
||||
|
||||
if err := conn.SetWriteDeadline(time.Now().Add(deadline)); nil != err {
|
||||
break INNER_LOOP
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user