Corrected route table syntax in case of broadcast message
[ric-plt/rtmgr.git] / pkg / rpe / rpe.go
index 1c006b4..b5c6961 100644 (file)
@@ -137,7 +137,10 @@ func (r *Rpe) addRoute_rx_list(messageType string, tx *rtmgr.Endpoint, rx []rtmg
        }
 
        if rx != nil {
-               rxList = []rtmgr.EndpointList{rx}
+               for _, item := range rx {
+                       ep := []rtmgr.Endpoint{item}
+                       rxList = append(rxList, ep)
+               }
        }
 
        messageId := strconv.Itoa(xapp.RICMessageTypes[messageType])