This commit is contained in:
crusader 2018-09-03 12:22:52 +09:00
parent 266ffdd674
commit 1251b9f423
2 changed files with 10 additions and 11 deletions

View File

@ -20,7 +20,7 @@ func Zone() *omd.Zone {
Network: fmt.Sprintf("%s.0/24", ZONE_NETWORK),
Iface: ZONE_IFACE,
MetaIPType: omm.ToMetaIPType(omm.MetaIPTypeEnumV4),
Address: fmt.Sprintf("%s.$s", ZONE_ADDRESS),
Address: fmt.Sprintf("%s.%s", ZONE_NETWORK, ZONE_ADDRESS),
Mac: ZONE_MAC,
}
}

View File

@ -1,7 +1,6 @@
package session
import (
omd "git.loafle.net/overflow/model/discovery"
"git.loafle.net/overflow_scanner/probe/discovery/types"
)
@ -21,14 +20,14 @@ type mockDiscoverySession struct {
ofDiscoverySession
}
func (ds *mockDiscoverySession) AddHost(host *omd.Host) *omd.Host {
return host
}
// func (ds *mockDiscoverySession) AddHost(host *omd.Host) *omd.Host {
// return host
// }
func (ds *mockDiscoverySession) AddPort(port *omd.Port) *omd.Port {
return port
}
// func (ds *mockDiscoverySession) AddPort(port *omd.Port) *omd.Port {
// return port
// }
func (ds *mockDiscoverySession) AddService(service *omd.Service) *omd.Service {
return service
}
// func (ds *mockDiscoverySession) AddService(service *omd.Service) *omd.Service {
// return service
// }