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), Network: fmt.Sprintf("%s.0/24", ZONE_NETWORK),
Iface: ZONE_IFACE, Iface: ZONE_IFACE,
MetaIPType: omm.ToMetaIPType(omm.MetaIPTypeEnumV4), MetaIPType: omm.ToMetaIPType(omm.MetaIPTypeEnumV4),
Address: fmt.Sprintf("%s.$s", ZONE_ADDRESS), Address: fmt.Sprintf("%s.%s", ZONE_NETWORK, ZONE_ADDRESS),
Mac: ZONE_MAC, Mac: ZONE_MAC,
} }
} }

View File

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