21 lines
524 B
Go
21 lines
524 B
Go
|
package tcp
|
||
|
|
||
|
import (
|
||
|
omd "git.loafle.net/overflow/model/discovery"
|
||
|
omm "git.loafle.net/overflow/model/meta"
|
||
|
"git.loafle.net/overflow_scanner/probe/discovery/session"
|
||
|
)
|
||
|
|
||
|
func Scan(discoverySession session.DiscoverySession, targetHost *omd.Host) error {
|
||
|
metaIPTypeEnum := omm.ToMetaIPTypeEnum(discoverySession.Zone().MetaIPType)
|
||
|
|
||
|
switch metaIPTypeEnum {
|
||
|
case omm.MetaIPTypeEnumV4:
|
||
|
return scanV4(discoverySession, targetHost)
|
||
|
case omm.MetaIPTypeEnumV6:
|
||
|
return scanV4(discoverySession, targetHost)
|
||
|
}
|
||
|
|
||
|
return nil
|
||
|
}
|