ing
This commit is contained in:
parent
e8cff368de
commit
34f3f59837
|
@ -756,7 +756,7 @@ func (ds *ofDiscoverySession) addtionalServiceMDNS(service *omd.Service, meta ma
|
|||
func (ds *ofDiscoverySession) appendDiscoveredBy(discoveredBy *omm.MetaDiscovererType, oriDiscoveredBy []*omm.MetaDiscovererType) (resultDiscoveredBy []*omm.MetaDiscovererType, modified bool) {
|
||||
modified = false
|
||||
|
||||
if "" == discoveredBy.Key {
|
||||
if nil == discoveredBy {
|
||||
resultDiscoveredBy = oriDiscoveredBy
|
||||
return
|
||||
}
|
||||
|
@ -770,7 +770,7 @@ func (ds *ofDiscoverySession) appendDiscoveredBy(discoveredBy *omm.MetaDiscovere
|
|||
}
|
||||
|
||||
for _, v := range oriDiscoveredBy {
|
||||
if v == discoveredBy {
|
||||
if v.Key == discoveredBy.Key {
|
||||
resultDiscoveredBy = oriDiscoveredBy
|
||||
return
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user