Fix filtering candidates (#901)
* Filter candidate after setting description * comment * Fix filtering candidates - For offer/answer from remote, do filtering before setting remote description so that Pion does not see filtered candidates - For offer/answer originating from server, do filtering after setting local description (comments in code) so that remote side does not see filtered candidates. - Make logging a little consistent and use right context. * Comment * TCP fallback config and UT (broken now) * log SDP only when preferring TCP * Remove TCP fallback test attempt
This commit is contained in:
@@ -25,7 +25,7 @@ const (
|
||||
roomPurgeSeconds = 24 * 60 * 60
|
||||
tokenRefreshInterval = 5 * time.Minute
|
||||
tokenDefaultTTL = 10 * time.Minute
|
||||
iceConfigTTL = 60 * time.Minute
|
||||
iceConfigTTL = 5 * time.Minute
|
||||
)
|
||||
|
||||
type iceConfigCacheEntry struct {
|
||||
@@ -270,6 +270,7 @@ func (r *RoomManager) StartSession(
|
||||
ClientConf: clientConf,
|
||||
Region: pi.Region,
|
||||
AdaptiveStream: pi.AdaptiveStream,
|
||||
AllowTCPFallback: r.config.RTC.AllowTCPFallback,
|
||||
})
|
||||
if err != nil {
|
||||
return err
|
||||
|
||||
Reference in New Issue
Block a user