Check destination identites of data message if sid is empty (#2058)
This commit is contained in:
+3
-2
@@ -26,12 +26,13 @@ import (
|
|||||||
"go.uber.org/atomic"
|
"go.uber.org/atomic"
|
||||||
"google.golang.org/protobuf/proto"
|
"google.golang.org/protobuf/proto"
|
||||||
|
|
||||||
|
"github.com/pion/sctp"
|
||||||
|
|
||||||
"github.com/livekit/livekit-server/pkg/sfu/connectionquality"
|
"github.com/livekit/livekit-server/pkg/sfu/connectionquality"
|
||||||
sutils "github.com/livekit/livekit-server/pkg/utils"
|
sutils "github.com/livekit/livekit-server/pkg/utils"
|
||||||
"github.com/livekit/protocol/livekit"
|
"github.com/livekit/protocol/livekit"
|
||||||
"github.com/livekit/protocol/logger"
|
"github.com/livekit/protocol/logger"
|
||||||
"github.com/livekit/protocol/utils"
|
"github.com/livekit/protocol/utils"
|
||||||
"github.com/pion/sctp"
|
|
||||||
|
|
||||||
"github.com/livekit/livekit-server/pkg/config"
|
"github.com/livekit/livekit-server/pkg/config"
|
||||||
"github.com/livekit/livekit-server/pkg/routing"
|
"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() {
|
if source != nil && op.ID() == source.ID() {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
if len(dest) > 0 {
|
if len(dest) > 0 || len(destIdentities) > 0 {
|
||||||
found := false
|
found := false
|
||||||
for _, dID := range dest {
|
for _, dID := range dest {
|
||||||
if op.ID() == livekit.ParticipantID(dID) {
|
if op.ID() == livekit.ParticipantID(dID) {
|
||||||
|
|||||||
Reference in New Issue
Block a user