mirror of
https://github.com/livekit/livekit.git
synced 2026-03-30 22:05:39 +00:00
Fix panic due to nil Egress (#3431)
This commit is contained in:
@@ -315,14 +315,16 @@ func redactCreateRoomRequest(req *livekit.CreateRoomRequest) *livekit.CreateRoom
|
||||
|
||||
clone := utils.CloneProto(req)
|
||||
|
||||
if clone.Egress.Room != nil {
|
||||
egress.RedactEncodedOutputs(clone.Egress.Room)
|
||||
}
|
||||
if clone.Egress.Participant != nil {
|
||||
egress.RedactAutoEncodedOutput(clone.Egress.Participant)
|
||||
}
|
||||
if clone.Egress.Tracks != nil {
|
||||
egress.RedactUpload(clone.Egress.Tracks)
|
||||
if clone.Egress != nil {
|
||||
if clone.Egress.Room != nil {
|
||||
egress.RedactEncodedOutputs(clone.Egress.Room)
|
||||
}
|
||||
if clone.Egress.Participant != nil {
|
||||
egress.RedactAutoEncodedOutput(clone.Egress.Participant)
|
||||
}
|
||||
if clone.Egress.Tracks != nil {
|
||||
egress.RedactUpload(clone.Egress.Tracks)
|
||||
}
|
||||
}
|
||||
|
||||
// replace with size of metadata to provide visibility on request size
|
||||
|
||||
Reference in New Issue
Block a user