Check destination identites of data message if sid is empty (#2058)

This commit is contained in:
cnderrauber authored and GitHub committed 2023-09-11 14:42:48 +08:00
1 parent be4ea44425
commit 696798279e
1 file changed
+3 -2
+3 -2
View File
@@ -26,12 +26,13 @@ import (
"go.uber.org/atomic"
"google.golang.org/protobuf/proto"
"github.com/pion/sctp"
"github.com/livekit/livekit-server/pkg/sfu/connectionquality"
sutils "github.com/livekit/livekit-server/pkg/utils"
"github.com/livekit/protocol/livekit"
"github.com/livekit/protocol/logger"
"github.com/livekit/protocol/utils"
"github.com/pion/sctp"
"github.com/livekit/livekit-server/pkg/config"
"github.com/livekit/livekit-server/pkg/routing"
@@ -1299,7 +1300,7 @@ func BroadcastDataPacketForRoom(r types.Room, source types.LocalParticipant, dp
if source != nil && op.ID() == source.ID() {
continue
}
if len(dest) > 0 {
if len(dest) > 0 || len(destIdentities) > 0 {
found := false
for _, dID := range dest {
if op.ID() == livekit.ParticipantID(dID) {