From b28205a1f117bd758f543a4baebc7eb069d69d71 Mon Sep 17 00:00:00 2001 From: Sean DuBois Date: Mon, 10 Jun 2019 00:33:56 -0700 Subject: [PATCH] Use ChannelBind for TURN Permissions Wasteful to use just indications --- candidate_relay.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/candidate_relay.go b/candidate_relay.go index 12f9f92..37b5d94 100644 --- a/candidate_relay.go +++ b/candidate_relay.go @@ -71,6 +71,9 @@ func (c *CandidateRelay) addPermission(dst Candidate) error { c.lock.Lock() c.permissions[dst.String()] = permission + if err = c.permissions[dst.String()].Bind(); err != nil { + c.agent().log.Warnf("Failed to Create ChannelBind for %v: %v", dst.String, err) + } c.lock.Unlock() go func(remoteAddr net.Addr) {