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

View File

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

View File

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