Fix Selected attribute not being copied (#2289)

This commit is contained in:
David Zhao
2023-12-03 22:05:23 -08:00
committed by GitHub
parent 98c81b92bb
commit 02c28a5946
+2
View File
@@ -84,12 +84,14 @@ func (d *ICEConnectionDetails) Clone() *ICEConnectionDetails {
clone.Local = append(clone.Local, &ICECandidateExtended{
Local: c.Local,
Filtered: c.Filtered,
Selected: c.Selected,
})
}
for _, c := range d.Remote {
clone.Remote = append(clone.Remote, &ICECandidateExtended{
Remote: c.Remote,
Filtered: c.Filtered,
Selected: c.Selected,
})
}
return clone