service
This commit is contained in:
parent
c98c75787b
commit
02dee66629
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user