bug fixed

This commit is contained in:
crusader 2018-09-01 17:49:01 +09:00
parent 6f259e2d9d
commit daadfb864d
2 changed files with 2 additions and 2 deletions

View File

@ -23,7 +23,7 @@ const (
) )
func Scan(discoverySession session.DiscoverySession, targetHost *omd.Host) error { func Scan(discoverySession session.DiscoverySession, targetHost *omd.Host) error {
if nil == targetHost || nil == discoverySession.DiscoverPort() { if nil == targetHost || nil == discoverySession.DiscoverPort() || !discoverySession.DiscoverPort().IncludeTCP {
return nil return nil
} }

View File

@ -7,7 +7,7 @@ import (
) )
func Scan(discoverySession session.DiscoverySession, targetHost *omd.Host) error { func Scan(discoverySession session.DiscoverySession, targetHost *omd.Host) error {
if nil == targetHost || nil == discoverySession.DiscoverPort() { if nil == targetHost || nil == discoverySession.DiscoverPort() || !discoverySession.DiscoverPort().IncludeTCP {
return nil return nil
} }