This commit is contained in:
insanity 2018-08-13 17:16:28 +09:00
parent c98c75787b
commit 02dee66629
3 changed files with 5 additions and 0 deletions

View File

@ -28,6 +28,7 @@ func ScanService(port *omd.Port, ds *omd.DiscoverService, resultChan chan interf
DiscoveredDate: omu.NowPtr(), DiscoveredDate: omu.NowPtr(),
Port: port, Port: port,
MetaCryptoType: omm.ToMetaCryptoType(omm.MetaCryptoTypeEnumUNKNOWN), MetaCryptoType: omm.ToMetaCryptoType(omm.MetaCryptoTypeEnumUNKNOWN),
Metadata: nil,
} }
resultChan <- s resultChan <- s
} }
@ -43,6 +44,7 @@ func ScanService(port *omd.Port, ds *omd.DiscoverService, resultChan chan interf
DiscoveredDate: omu.NowPtr(), DiscoveredDate: omu.NowPtr(),
Port: port, Port: port,
MetaCryptoType: omm.ToMetaCryptoType(omm.MetaCryptoTypeEnumUNKNOWN), MetaCryptoType: omm.ToMetaCryptoType(omm.MetaCryptoTypeEnumUNKNOWN),
Metadata: nil,
} }
resultChan <- s resultChan <- s
} }

View File

@ -159,6 +159,7 @@ LOOP:
MetaCryptoType: sc.MetaCryptoType(), MetaCryptoType: sc.MetaCryptoType(),
DiscoveredDate: omu.NowPtr(), DiscoveredDate: omu.NowPtr(),
Metadata: m.Meta(), Metadata: m.Meta(),
Name: m.Name(),
} }
break LOOP break LOOP
} }

View File

@ -31,6 +31,8 @@ func scanServiceUDP(port *omd.Port, ds *omd.DiscoverService, resultChan chan int
Port: port, Port: port,
MetaCryptoType: omm.ToMetaCryptoType(omm.MetaCryptoTypeEnumNONE), MetaCryptoType: omm.ToMetaCryptoType(omm.MetaCryptoTypeEnumNONE),
DiscoveredDate: omu.NowPtr(), DiscoveredDate: omu.NowPtr(),
Metadata: m.Meta(),
Name: m.Name(),
} }
resultChan <- s resultChan <- s