From 0cbd8a80cbdf2fe095ef6e347be2096c84e0b7eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antoine=20Bach=C3=A9?= Date: Mon, 12 Oct 2020 21:37:27 +0200 Subject: [PATCH] ICE-Lite ControlledSelector now validates pairs Fixes #288 --- README.md | 1 + selection.go | 2 ++ 2 files changed, 3 insertions(+) diff --git a/README.md b/README.md index f28eda0..788a292 100644 --- a/README.md +++ b/README.md @@ -60,6 +60,7 @@ Check out the **[contributing wiki](https://github.com/pion/webrtc/wiki/Contribu * [Kory Miller](https://github.com/korymiller1489) * [ZHENK](https://github.com/scorpionknifes) * [Assad Obaid](https://github.com/assadobaid) +* [Antoine Baché](https://github.com/Antonito) ### License MIT License - see [LICENSE](LICENSE) for full text diff --git a/selection.go b/selection.go index df5d1f9..e0cfb10 100644 --- a/selection.go +++ b/selection.go @@ -281,5 +281,7 @@ func (s *liteSelector) ContactCandidates() { // TODO: implement lite controlling agent. For now falling back to full agent. // This only happens if both peers are lite. See RFC 8445 S6.1.1 and S6.2 s.pairCandidateSelector.ContactCandidates() + } else if v, ok := s.pairCandidateSelector.(*controlledSelector); ok { + v.agent.validateSelectedPair() } }